deanishe Posted June 6, 2021 Share Posted June 6, 2021 15 hours ago, vitor said: it acts on the whole path, so it may rename a directory and then can’t get to the files inside Sounds like the real problem is that it works top-down instead of bottom-up. Link to comment
vitor Posted June 6, 2021 Author Share Posted June 6, 2021 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
deanishe Posted June 6, 2021 Share Posted June 6, 2021 (edited) 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 June 6, 2021 by deanishe Link to comment
vitor Posted February 23, 2022 Author Share Posted February 23, 2022 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. cands 1 Link to comment
vitor Posted December 19, 2022 Author Share Posted December 19, 2022 (edited) Updated to 2022.2. Workflow is now distributed via the Alfred Gallery. Download the new version from there or update directly from Alfred.New repository.New icon.New About.Remove OneUpdater in favour of Gallery updating. Edited December 19, 2022 by vitor Link to comment
vitor Posted March 17 Author Share Posted March 17 Updated to 2023.1. Option to reopen Universal Actions panel after renaming with ⌘↩. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now