• Hello MLAers! We've re-enabled auto-approval for accounts. If you are still waiting on account approval, please check this thread for more information.

AppleScript Tutorial

nathanpc

6502
Hello,

I'm new in Mac and i want to know where i can find a good tutorial to learn AppleScript, but remember that i'm using Mac OS System 7.5.5.

Thanks,

Nathan Paulino Campos

 
Quite a few good books were written about AppleScript, take a look on Amazon to pickup a few used copies.

 
1. Start up the script editor.

2. Turn recording on.

3. Switch to Finder

4. Move a couple of files around

5. Switch back to editor

6. Stop recording

7. Save script as a file

8. End of tutorial

You should see lots of "tell type name" to do something with things. That's basically AppleScript, it's about sending AppleEvents which are defined in the target applications dictionaries. Oh, and a few variables and flow control. Where it gets fancy is when people integrate with MacHTTP and start writing web-sites in AppleScript, look for those samples around.

 
The Tao of AppleScript is a well-written introduction.
Yes, this is a very well written documentation. I used the book as a guide to write and understand my first lines of AppleScript code. If, in any case, AppleSrcipt is not capable of performing some tasks you would like to include into your project, and you did not want to deal with something less easy to learn, try to combine it with the Classic Software KeyQuencer. It allows to write similar script programmes with a set of inbuilt functions, and also to execute AppleScript code from within a KeyQuencer macro script. Have fun!

 
Back
Top