Rename files with numbers prepended

Takes a list of files and adds an index before each title as the new filename.

Actions Used

shortcuts-action-icon-repeat-with-each.webp
Repeat with Each
Takes a list of items as input, and runs the contained actions once for each item in the list.
shortcuts-action-icon-if.webp
If
Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.
shortcuts-action-icon-set-variable.webp
Set Variable
Sets the value of the specified variable to the input of this action.
shortcuts-action-icon-text.webp
Text
Passes the specified text to the next action.
shortcuts-action-icon-number.webp
Number
Passed a number to the next action
Select File
Prompts to select files or folders.

Extra Details

Run Shortcut deep link
shortcuts://run-shortcut?name=Rename%20files%20with%20numbers%20prepended
Open Shortcut deep link
shortcuts://open-shortcut?name=Rename%20files%20with%20numbers%20prepended
AppleScript code
tell application “Shortcuts Events” run shortcut “Rename files with numbers prepended” end tell

More From This Folder

More From The Library


Get way deeper into Shortcuts – become a member.