Rename the file to the base name plus the current counter value plus the extension.Save the file’s extension to a variable so it can be used later.It will cycle through each file that you pass to it and perform the same series of actions on each one. If you don’t select any files, it will just crash.Ī For Each Path in Finder Selection action is a kind of Control Flow action. For the macro to run, you'll need to select a group of files in Finder before pressing the Hot Key trigger. Add a For Each Path in Finder Selection action. Once things are set up the files can be pulled in. This both gives us the counter variable and resets it every time the macro is run. Give it the variable name FileNameCounter and have it set to 1. You’ll also find it in the Variables Category. Next add a Set Variable to Calculation action. Click the Green Plus icon to add a new variable. That counter also needs to reset to 1 every time the action is run.Īdd a New Action and select Prompt for User Input from the Variables Category. Second, it needs a counter so that it can add the sequence number to the end of each filename. This macro needs to do a few things before it loads in any files.įirst, I need some way to tell it what to name each file. I’ve gone with Command-Option-Shift-R for the trigger because it’s not used by Finder already. Give it a name like Rename Files and a Hot Key trigger. Open Keyboard Maestro and create a new macro. It costs $36 for a full licence (which I obviously think is well worth it) and there’s a free trial so you can get a feel for the app before buying it. You’ll also need a copy of Keyboard Maestro.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |