Prepending creation date to selected files using AppleScript (macOS)
I try to name all of my files using the file’s creation date as a prefix. For example:
20230504-MyNewFile.txt
If I forget, it’s a pain to rename them, so I created a short AppleScript to do it for me.
-- Prepend Creation Date to selected files
-- Install Location: ~/Library/Scripts/Applications/Finder
-- Last Modified: 2023-05-04
I put the script into a Finder-specific folder, so it’s made easily available when Finder is the frontmost app: ~/Library/Scripts/Applications/Finder. (I use FastScripts to make things, er, faster).
I’ve also created a version for use via Raycast, which is identical but not “compiled”, as that seems to break things in Raycast.