Rename files with numbers prepended

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

Actions

Select File
Prompts to select files or folders.
shortcuts-action-icon-set-variable.webp
Set Variable
Sets the value of the specified variable to the input of this action.
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-text.webp
Text
Passes the specified text to the next action.
shortcuts-action-icon-number.webp
Number
Passed a number to the next action

More From This Folder

Extra Details

Link to Run Shortcut
shortcuts://run-shortcut?name=Rename%20files%20with%20numbers%20prepended
Link to Open Shortcut
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 The Library

Show my Lab Results records

Opens into the Health app to the Lab Results section of your Health Records where you can “connect to your providers to see your health records and get updates when there’s a new entry.”

Get Shortcut »

Show my saved stories

Opens into the Saved Stories tab of the News app, where you can quickly access news stories you’ve saved for later – I’ll often save multiple stories as I browse, then visit this tab to read them all one-by-one.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more