November 22, 2004

AppleScript Folder-Action Fun

Well, Jay did something similar, but Google didn’t find it, so i wrote my own: renamer.scpt (download and open in Script Editor)


It is a folder action script that works as follows:


When a file is added to a folder with Folder Actions enabled and this script enabled, it will rename the file from:
filename.ext to filename-year-month-day.ext
ex. graphic.jpg to graphic-2004-11-22.jpg


Enjoy, oh, and Jay does offer this bit of wisdom:


you might get some odd behavior from the “downloading” part in the browser if the finder renames the file while safari is still dealing with it

0 comments: