Archive for the 'Applescript' Category

[AS] Image Events

Sunday, October 29th, 2006

Working with images got a lot easier in Applescript with OS X 10.4. Apple included an Image Events suite that lets you do basic image editing right within Applescript. Image Events lets you do things like scale, rotate, crop, and flip images with ease. (more…)

[AS] Complaints and grievances

Wednesday, August 30th, 2006

In no particular order, here’s a few of my complaints with Applescript. (more…)

[AS] Writing Script Editor plugins

Friday, August 18th, 2006

Script Editor has a very simple plugin architecture that, to the best of my knowledge, isn’t documented anywhere. Well, with FScript Anywhere and class-dump, I figured out how to work with the plugin system. I’m quickly tossed out a CodeSnippets plugin (available on the Applescripts page) and it could probably use a bit more work but I thought I’d go ahead and spill the beans on how to write Script Editor plugins. (more…)

[AS] Property list files

Tuesday, August 1st, 2006

In OS X 10.4 (or maybe 10.3, I don’t remember), Apple released a bunch of new classes to Applescript to finally bring it somewhat up to date. Applescript still doesn’t have property string search/replace utilities but I’ll take whatever improvements I can get. Unfortunately, Apple’s documentation hasn’t been updated in years. Apple puts this new stuff out but doesn’t tell us how to use it. Bastards.

So I’ve been working with property list files for the last few days. I’ve put what I’ve figured out in the extended section of this post. If you’ve been considering working with property list files, it may be worth a look.

(more…)

[AS] Special applescript handlers

Thursday, July 27th, 2006

Applescript has the ability to selectively execute particular handlers based on what the user wants to do. These “handlers” describes what the script is supposed to do in these situations. Applescript has a handful of useful handlers that are built-in. These handlers describe what the script is supposed to do in specific situations and can fundamental change the nature of a script.

Related articles: * Applescript handlers (more…)