Posts Tagged ‘utility’

Make your own Applescript image resizers for Mac…

Tuesday, September 2nd, 2008

Wow, I’ve just discovered Applescript… after 15 years!

If you have a Mac and you’re even remotely drawn towards programming or fiddling, you’ve got to have a fiddle with Applescript. Never really though about it but had one of those nagging “I wish I could just…” issues with resizing images to send via email or post to blogs.

All I wanted was a simple drag-and-drop utility to resize my images ready for posting. After a few searches, I found a thread about using Applescript to do it and some sample script. I looked in my Applications folder and there it was, the Applescript editor. A copy-paste later, a bit of editing and saving the code as an application later… I had a desktop app to resize my images! Yay!

I do have plans to make one app that asks you what size you want before starting the batch, but I haven’t found the time to fiddle some more. In the meantime, I thought I’d share the ‘drop-apps’ I created from the script mentioned above. I’ve got these on my desktop and I just drag an image on to resize it. The app will save the new image in the same location but prefix the filename with the new size.

There is an app for each of the sizes I regularly require. If you need a different size, just drag the app onto your Applescript editor and change the “set the target_width to 640″ to whatever you need.

Here are the ones I use:

Resize to 240 pixels

Resize to 320 pixels

Resize to 640 pixels

Resize to 800 pixels

I also experimented with an app that converted PC remote VPN filepaths from our work server and opened the file on your desktop. All very cool. You’ll be surprised just how powerful it is so give it a go!

Hope it comes in handy!