ShareShortcuts
Fork “Copy Files”

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
0
Actions
26
Category
Utilities
Version
1.1
Language
EN

Copy files to /Shortcuts/copy files

Copy files to specific folder

Make folder to save too

Adds word Copy to end of file name

Created by me

What's New

Version 1.1

Code changes

Version History
1.1 Dec 21, 2019

Code changes

1.0 Dec 15, 2019

First release

What it does

26 actions
  1. Choose from Menu
  2. Choose from Menu
    copy files
  3. Get File
  4. Repeat with Each
  5. Get Details of Files
  6. Set Variable
    Extension
  7. Get Name
  8. Set Name
  9. Choose from Menu
    copy files save too
  10. Get File
  11. Repeat with Each
  12. Get Details of Files
  13. Set Variable
    Extension
  14. Get Name
  15. Set Name
  16. Save File
  17. Stop This Shortcut
  18. Choose from Menu
    create folder to save too
  19. Ask for Input
    Set folder name to use
  20. Set Variable
    Folder name
  21. Create Folder
  22. Show Result
  23. Stop This Shortcut
  24. Create Folder
  25. Save File
  26. 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/documents'
#define color taupe
#define glyph magicWandAlt


menu "" {
item "copy files":
	const File = getFileFromFolder(, "")
	for _ in File {
		getFileDetail(nil, "File Extension")
		@Extension
		getName(@RepeatItem)
		setName(@RepeatItem, "{}Copy.{@Extension}")
	}
item "copy files save too":
	const File1 = getFile("")
	for _ in File1 {
		getFileDetail(nil, "File Extension")
		@Extension
		getName(@RepeatItem)
		const RenamedItem = setName(@RepeatItem, "{}Copy.{@Extension}")
		saveFilePrompt(RenamedItem)
	}
	stop()
item "create folder to save too":
	prompt("Set folder name to use")
	@FolderName
	createFolder(@FolderName)
	show("New folder is /Shortcuts/{@FolderName}")
	stop()
}
createFolder("copy files")
saveFile("copy files", MenuResult, true)
show("In folder /Shortcuts/copy files")
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