ShareShortcuts

All File Text To File

hunter9888x
Fork “All File Text To File”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so hunter9888x gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
63K
Saved
2
Actions
50
Category
Utilities
Version
1.2
Language
EN

Take text inside all files in order

Separates text in all files by new line or spaces & adds it To a new file (set name of file)

Save to folder /Shortcuts/file text to file

or Save to specific folder

& Make folder

Created by me

What's New

Version 1.2

Name changes

Version History
1.2 Jan 7, 2020

Name changes

1.1 Dec 21, 2019

Save too options

1.0 Dec 17, 2019

First release

What it does

50 actions
  1. Choose from Menu
  2. Choose from Menu
    file text to file (new line)
  3. Get File
  4. Filter Files
  5. Repeat with Each
  6. Get Details of Files
  7. Set Variable
    Extension
  8. Get Text from Input
  9. Combine Text
  10. Set Name
  11. Choose from Menu
    file text to file (spaces)
  12. Get File
  13. Filter Files
  14. Repeat with Each
  15. Get Details of Files
  16. Set Variable
    Extension
  17. Get Text from Input
  18. Combine Text
  19. Set Name
  20. Choose from Menu
    file text to file (new line) save too
  21. Get File
  22. Filter Files
  23. Repeat with Each
  24. Get Details of Files
  25. Set Variable
    Extension
  26. Get Text from Input
  27. Combine Text
  28. Set Name
  29. Save File
  30. Stop This Shortcut
  31. Choose from Menu
    file text to file (spaces) save too
  32. Get File
  33. Filter Files
  34. Repeat with Each
  35. Get Details of Files
  36. Set Variable
    Extension
  37. Get Text from Input
  38. Combine Text
  39. Set Name
  40. Save File
  41. Stop This Shortcut
  42. Choose from Menu
    create folder
  43. Ask for Input
    Set Folder Name to Save Too
  44. Set Variable
    Folder name
  45. Create Folder
  46. Show Result
  47. Stop This Shortcut
  48. Create Folder
  49. Save File
  50. Show Result

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/text'
#include 'actions/documents'
#define color lightblue
#define glyph magicWandAlt


const RepeatResults = menu nil {
item "file text to file (new line)":
	const File = getFileFromFolder(, "")
	const Files = filterFiles(File, "Creation Date", "Oldest First")
	const RepeatResults1 = for _ in Files {
		getFileDetail(nil, "File Extension")
		@Extension
		getText(@RepeatItem)
	}
	const CombinedText = joinText(RepeatResults, "
")
	setName(CombinedText, "Newfile{Ask}.{@Extension}")
item "file text to file (spaces)":
	const File = getFile("")
	const Files = filterFiles(File, "Creation Date", "Oldest First")
	for _ in Files {
		getFileDetail(nil, "File Extension")
		@Extension
		getText(@RepeatItem)
	}
	const CombinedText = joinText(RepeatResults1, " ")
	const RenamedItem1 = setName(CombinedText, "Newfile{Ask}.{@Extension}")
item "file text to file (new line) save too":
	const File = getFile("")
	const Files = filterFiles(File, "Creation Date", "Oldest First")
	for _ in Files {
		getFileDetail(nil, "File Extension")
		@Extension
		getText(@RepeatItem)
	}
	const CombinedText = joinText(RepeatResults, "
")
	const RenamedItem = setName(CombinedText, "Newfile{Ask}.{@Extension}")
	const SavedFile = saveFilePrompt(RenamedItem)
	stop()
item "file text to file (spaces) save too":
	const File = getFile("")
	const Files = filterFiles(File, "Creation Date", "Oldest First")
	for _ in Files {
		getFileDetail(nil, "File Extension")
		@Extension
		getText(@RepeatItem)
	}
	const CombinedText = joinText(RepeatResults, " ")
	const RenamedItem1 = setName(CombinedText, "Newfile{Ask}.{@Extension}")
	const SavedFile1 = saveFilePrompt(RenamedItem1)
	stop()
item "create folder":
	prompt("Set Folder Name to Save Too")
	@FolderName
	createFolder(@FolderName)
	show("New folder is /Shortcuts/{@FolderName}")
	stop()
}
createFolder("file text to file")
saveFile("file text to file", MenuResult, true)
show("In folder /Shortcuts/file text to file")
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by hunter9888x

See All

You Might Also Like

See All
Advertisement