No account yet?

Links

Home arrow Articles arrow Programming arrow Drag-and-drop script to quickly resize any image
Drag-and-drop script to quickly resize any image PDF Print E-mail
Tag it:
Delicious
blogmarks
Stumble
Furl it!
Digg
YahooMyWeb
Technorati
User Rating: / 0
PoorBest 

My friend (and primary author of the two Unix chapters in the new Woof Book) Kirk McElhearn was looking for a simple way to resize images for his Kirkville website. Although there are probably 1,500 apps out there that resize images, none seemed to do exactly what he wanted: drag an image onto an app, have it scale it to a predefined size, then save the file with a new name. He didn't want to have to launch Photoshop or Graphic Converter, nor specify the parameters every time; he just wanted a fast and easy resizer to his chosen dimensions (120 pixels wide by the required scale length).

Being the AppleScript expert that I am (ha!), I quickly chose the "phone a real expert" option and sent an email to Sal Soghoian, who was kind enough to respond with some very elegant resizing code. I then took a shot at adding the requisite file handling bits, but again my abilities with AppleScript turned Sal's work into a muddled mess. So I again deferred to an expert. This time, it was Doug Adams, of Doug's AppleScripts for iTunes fame (300+ free iTunes AppleScripts). Between the two of them, the end result was a very effective AppleScript. Read the rest of the hint for the details...

Open Script Editor, and create the following new script:

Source: http://www.macosxhints.com/article.php?story=2004092804461334


Comments
Search
Only registered users can write comments!
 
Next >