ShareShortcuts
Fork “Rename 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
64K
Saved
0
Actions
42
Category
Utilities
Version
1.8
Language
EN

Rename multiple files at once

Change file extension of All files

Saves to folder /Shortcuts/Rename

Or save to specific folder

Create folder to save too

Created by me

What's New

Version 1.8

Fixed up code

Version History
1.8 Dec 20, 2019

Fixed up code

1.7 Dec 14, 2019

File extension save too & create folder

1.6 Dec 14, 2019

Added save to

1.5 Dec 14, 2019

Added file name & extension

1.4 Dec 14, 2019

Added file name

1.3 Dec 14, 2019

You will love this

1.2 Dec 14, 2019

No widget

1.1 Dec 13, 2019

Fixed up the shortcut

1.0 Dec 12, 2019

First release

What it does

42 actions
  1. Choose from Menu
  2. Choose from Menu
    File Name & Extension
  3. Get File
  4. Repeat with Each
  5. Get Name
  6. Get Details of Files
  7. Set Variable
    Extension
  8. Set Name
  9. Choose from Menu
    All File Extensions
  10. Ask for Input
    What File Extension to use?
  11. Set Variable
    Extension
  12. Get File
  13. Repeat with Each
  14. Get Name
  15. Set Name
  16. Choose from Menu
    File Name & Extension Save Too
  17. Get File
  18. Repeat with Each
  19. Get Name
  20. Get Details of Files
  21. Set Variable
    Extension
  22. Set Name
  23. Save File
  24. Stop This Shortcut
  25. Choose from Menu
    All File Extensions Save Too
  26. Ask for Input
    What File Extension to use?
  27. Set Variable
    Extension
  28. Get File
  29. Repeat with Each
  30. Get Name
  31. Set Name
  32. Save File
  33. Stop This Shortcut
  34. Choose from Menu
    Create Folder to Save Too
  35. Ask for Input
    Set Folder Name to Save Too
  36. Set Variable
    Folder Name
  37. Create Folder
  38. Show Result
  39. Stop This Shortcut
  40. Create Folder
  41. Save File
  42. 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 darkorange
#define glyph magicWandAlt


menu nil {
item "File Name & Extension":
	const File = getFileFromFolder(, "")
	for _ in File {
		getName(@RepeatItem)
		getFileDetail(nil, "File Extension")
		@Extension
		setName(@RepeatItem, "{}{Ask}.{@Extension}")
	}
item "All File Extensions":
	prompt("What File Extension to use?")
	@Extension
	const File1 = getFile("")
	for _ in File1 {
		getName(@RepeatItem)
		setName(@RepeatItem, "{}.{@Extension}")
	}
item "File Name & Extension Save Too":
	const File2 = getFile("")
	for _ in File2 {
		getName(@RepeatItem)
		getFileDetail(nil, "File Extension")
		@Extension
		const RenamedItem = setName(@RepeatItem, "{}{Ask}.{@Extension}")
		const SavedFile = saveFilePrompt(RenamedItem)
		stop()
	}
item "All File Extensions Save Too":
	prompt("What File Extension to use?")
	@Extension
	const File1 = getFile("")
	for _ in File1 {
		getName(@RepeatItem)
		setName(@RepeatItem, "{}.{@Extension}")
	}
	const SavedFile1 = saveFile("Rename", RepeatResults, true)
	stop()
item "Create Folder to Save Too":
	prompt("Set Folder Name to Save Too")
	@FolderName
	createFolder(@FolderName)
	show("New folder is /Shortcuts/{@FolderName}")
	stop()
}
createFolder("Rename")
saveFile("Rename", MenuResult, true)
show("Will be in folder /Shortcuts/Rename ")
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