Jump to content

Rename Action — Rename files and folders


Recommended Posts

42 minutes ago, deanishe said:

Sounds like the real problem is that it works top-down instead of bottom-up.


Tried that but the result was the same. Also tried making a loop to rename one result at a time and thought about changing directories before doing the rename. But by that point I would already be losing any benefit of using an external program instead of doing it myself and falling again into the trap of having to test every case.

Link to comment
2 hours ago, vitor said:

Also tried making a loop to rename one result at a time and thought about changing directories before doing the rename.

 

IIRC, the way to do it is to recursively collect all the filepaths, sort them (this puts every parent before its children), then process them in reverse order. But yeah, that won't work if your rename program is altering more than the last path component.

Edited by deanishe
Link to comment
  • vitor changed the title to RenameAction — Rename files and folders

Update.


Rewrote the Workflow in JXA and added quality of life improvements. Now you’ll get feedback when typing the new name, and if the desired target already exists it won’t let you proceed (previously it appended the date to the name).


To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater.

Link to comment
  • vitor changed the title to Rename Action — Rename files and folders
  • 2 weeks later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...