1.

How Do I Learn Applescript?

Answer»
  • Probably the best approach to learning AppleScript is to buy one of the available AppleScript books or the Scripting Kit and work through the scripts in the book. Constantly fooling around with AppleScript also helps. Because Apple event and object MODEL SUPPORT in THIRD party applications isn't always consistent, you will quickly discover that what works in one program may not work in another. Experience is the best teacher in these cases.
  • Another avenue for learning how to script is to study the scripts that others have written. Look at the example scripts that are supplied with the Scripting Kit. You can also watch the progress of Apple events in the Log window (AppleScript 1.1) to learn more about how scripts work. If you are using one of the third party script editors (Scripter or Script DEBUGGER), you can watch the variables as they change.
  • If you are working with an application that is recordable, you can record actions in the application and then study the scripts that it produces. Since the application is "writing" the script, you will get a better idea of the commands that it understands and how they should be scripted.
  • Of course, you can always join the MACSCRPT mailing list, read all of the messages, and run all of the scripts that are posted and DISCUSSED. This is a bit more interactive than reading a book.



Discussion

No Comment Found