views:

152

answers:

1

I've done iPhone development for the last year without needing to learn the first thing about Applescript, but now I'm finding I want to automate some tasks. But I can't find any good documentation on the language. Even the Apple developer site doesn't seem to have what I want.

I don't need a tutorial -- just a document that tells me the syntax and the APIs.

I'm sure I'm just missing something obvious -- can anyone help me out?

+5  A: 

Applescript APIs are each made by the developer of the application you're hooking into.

Open the application file (.app) with the script editor. This will produce an Applescript dictionary of all the commands you can issue the application.

Here's the language guide. If you've got something really simple you want to do, like copy a file, try the bash shell. Also, Automator is a nifty little visual programming environment I've used to generate test data or just to goof around with when I'm tired of XCode.

For instance, I made a little program that takes 100 snapshots to entertain my friends in just a minute.

Chris McCall
Thanks, that was what I was looking for.
Amagrammer