Everytime (well, last night actually) when I need to do something with Applescript I shudder with horror. The syntax is actually something you forget all the time. There must be better alternatives for Apple to use as a scripting language. I agree with this article, but Python or Ruby would be a better alternative I think.
Home ยป Ruby