17 AppleScripts You Should Try
Posted 10/21/2008 at 3:03am
| by Greg Healy

Hey, it's quicker than clicking the tops of 11 Finder windows one by one to minimize them.
5. Finder Windows - Hide All
When Finder Windows - Hide All is run, each Finder window that is open will be minimized into the Dock. This is especially handy when paired with a keyboard shortcut.

And all those minimized Finder windows will come racing back when you run the Finder Windows - Show All script.
6. Finder Windows - Show All
When you minimize all of those Finder windows with script No. 5, it wouldn’t be very time efficient to go back and click each window to bring it out of the Dock, now would it? Finder Windows - Show All will bring all Finder windows that are in the Dock back out onto the Desktop.

Mislabel a bunch of folders or files? Replace Text In Item Names lets you fix them all at once.
7. Replace Text In Item Names
Of all the Finder-related scripts listed here, this is probably the most useful. Replace Text In Item Names allows you to type in text for the script to find in file/folder names, and then what to replace it with. For example, if you had a folder full of files in which you wanted to change all instances of “2007” to “2008,” this script will let you do just that. You can change file names, folder names, or even both at the same time.

Nothing wrong with mixing cases, but it's just so ugly—Change Case Of Item Name will tidy up that mess.
8. Change Case Of Item Names
If you’ve ever accidentally went through and named a bunch of items with the Caps Lock on, you know how much of a bother it is to go back and retype the filenames. Change Case Of Item Names will go through each file and/or folder in the frontmost Finder window, and either make the filenames use all upper- or lowercase letters. This script doesn’t just go to work on filenames that are entirely in capital or lowercase letters. If you have a group of filenames where 7 out of 10 letters in the filename are capitals that you want lowercase, Change Case Of Item Names will change them too.
9. Switch To Finder
This is another script that’s particularly useful when paired with a keyboard shortcut. Switch To Finder not only makes the Finder the active application, it also hides all other open applications (by making them invisible, not just minimizing them).
Next up... Mail- and iTunes-related AppleScripts.