Applescript and Photoshop Thumbnail Generator

I'm not sure how many computer geeks read this blog, but just in case there are, hopefully you'll find this useful. (Note: you'll need a Mac and Adobe's Photoshop1.)

In my work, I sometimes need to resize a bunch of images for web photo galleries. If you have ever done that, you know how tedious it can be. Thankfully, Photoshop and Fireworks2 both have batch editing functionality, and it usually does the trick.

Then, recently I learned about Apple's built-in Automator3, and got excited about customizing my batch processes. But, even though Automator did the trick, (and with the help of these scripts4, I was able to do more with Photoshop), I needed something more specific, with more customization.

Well, Automator is just a bunch of AppleScript5, right? So why not just learn a little AppleScript and make my own script to resize images exactly how I need? That's what I've done. Right now it can resize images (only JPEGs) in three ways — proportional by width, longest side, and square. And it takes advantage of Photoshop's "Save for Web" feature, which is great for getting high quality images in small file sizes. In the future I will add support for renaming options.

Edit: I moved the script information to this page6.

Comments

1. Matthew Baute on Feb 8, 07 at 1:28 pm

You might also check out a program called Easy Thumbnails, which I've been using for some time to do the thumbnails on my site. It has batch capability and is easy to use.

2. Joel Stein on Feb 8, 07 at 6:43 pm

Thanks for the suggestion, Matthew. However, it doesn't run on a Mac. That's why I put this AppleScript together.

3. Avram on Aug 25, 08 at 7:54 pm

FYI, the link to at "http://www.steindom.com/thumbnails" to download the script is broken.

4. Matthew Baute on Aug 26, 08 at 8:59 am

Who cares if it doesn't run on a Mac? :)

5. Joel Stein on Aug 26, 08 at 3:34 pm

Avram: Thanks for pointing that out. The download link on the script page works once again!

Matthew: Ha ha... I appreciate your anti-Mac humor. Actually, about a week ago I looked into switching to a PC (long story), and made a list of all the things I'd have to switch. I ultimately decided to stay a Mac guy, because I'm so used to all the web development tools and can work very quickly (one tool is TextMate, of which I have yet to find anything better). But I will give you this: Office 2007 rocks! I'm glad I have Parallels; I get the best of both worlds!

6. Matthew Baute on Aug 26, 08 at 3:49 pm

I don't fault you at all for staying on a Mac... it's really out of a jealousy of the Mac's stability that I spoke. And on a side note, each studio I've been in is running ProTools on.... what else... a MAC

Add Your Comment