Rename File

📇

Renames the specified file.

Score
Stage
Prompt
Type
4
4/5

Information

Parameters

Rename [File] to [Name]

Input

Files

Result

Files

Comments

The Rename File action is also a welcome addition to Shortcuts, providing a more specific function for renaming a file in-place than what currently exists.
In Shortcuts, there’s already a Set Name action that lets users attach a filename to any media they’re working on, which can be useful for giving a new file a new name and even changing the extension, as well as some Shortcuts-specific techniques like naming data so it appears in Choose From List with that name as the menu option while passing out the data as a value.
However, that dual purpose—as well as a slightly less clear title—meant than many people simply didn’t know about or think to use Set Name; plus it’d create a copy of your File and you’d have to overwrite the existing file with a new version just to rename it.
Now, Rename File lets you update the title of an existing file without creating a new copy, which will be much more practical for everyday uses.
I could see using this with a large batch-renaming workflow where you prepend or append a category type or dates with a big set of files that aren’t named properly – I do this regularly with image assets I’m uploading to a freelance website I work for, for example.

Details

Score
4/5
Date Added
07/06/2021
Stage
Type
Identifier
is.workflow.actions.file.rename

Works Well With

Shortcuts Using This


Get more ways to browse the actions – become a member.