Shortcuts app: duplicate and rename file on Finder

I want to duplicate a file on Finder and then append "ORIGINAL" to the name of the new file.

Using Shortcuts, this operation is very difficult because there is no "duplicate file" action.

I've just come up with a string of actions which seem to me the starting point, but cannot figure out where to go from here.

The actions are as follows:


  • Get selected files on Finder
  • Define variable: "file"
  • Define variable: "name_of_file"
  • Define variable: "path_of_file"
  • Save "file" on:
    • Ask where to save: "path_of_file"


I suppose the next step would be

  • Combine "name_of_file" with "ORIGINAL"


Any suggestions will be appreciated.


Posted on Sep 27, 2024 8:01 AM

Reply

Similar questions

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Shortcuts app: duplicate and rename file on Finder

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.