Mar 27, '09 07:30:03AM • Contributed by: Anonymous
In order to solve this, I have written a script to rename any of the default-named screenshot files to a name you prefer with the number before the name. For example, this script will change Picture 1.png to 1 Screenshot.png. Here's the script: You can also download the script if you prefer. Once you've created/downloaded the script, you'll need to set it up.
Here's how to get the script working:
- Put the script in a safe place.
- Open up the script and edit the first three properties:
- the_suffix: This is what will come immediately after the number.
- folder_path: This is the folder that your screenshots reside in; most likely it is your desktop. To change this, delete the text that is already there, and drag in the folder that you use. If you are asked if you want to copy the files in, simply select the 'Alias' option. Make sure that there is a trailing slash.
- default_extension: Put in the extension of screenshots you take. Make sure there is a leading dot.
- If you don't already have it, go get Lingon.
- Open up Lingon and make a new script by hitting Command-N.
- In the first dialog, select My Agents. For the name, use something like com.mactipper.screenshots.folderaction or anything else that you know will be unique. It is important that it has a unique name.
- For the 'What', type in osascript, press the Space Bar, then type a double-quote mark ("), then drag in the script you edited. Finally, end it with another double-quote mark.
- For the 'When', set Run it if this file is modified box to the folder that your screenshots go to. To make sure this is done properly, click on the text box then drag in the folder from Finder and drop it onto the box. Finally, add a trailing slash (/) to the file name.
- Hit Command-S to save the script.
- Restart your computer to load the launchd script.
[robg adds: I haven't tested this one.]
