13.19. Summary

This chapter provided a tapestry of various techniques, features, and commands. In particular, you learned

  • How to write a command handler

  • When to use a using terms from block

  • How to work with the clipboard

  • How to activate the Script Menu and install and remove scripts

  • How to attach a script to a folder using the Folder Actions feature

  • The principle of the Open Scripting Architecture

  • What a Scripting Addition is

  • How to get scripts from recordable applications

  • How to use the GUI Scripting feature to write scripts for unscriptable applications

  • The use of the keywords before and after

  • What an AppleEvent is

  • How to use web services XML-RPC and SOAP

  • How to use osascript to execute an AppleScript program or command from the Terminal application

  • How to use the do shell script command to execute UNIX command lines

  • How to use the with transaction statement

  • How the run script command works

  • How to schedule scripts to run with the cron

In the next chapter, you are introduced to AppleScript Studio, which is a powerful development environment that enables you to create sophisticated Graphical User Interfaces (GUIs) for your programs. Before proceeding, however, try the exercises that follow to test your understanding of the material covered in this chapter. You can find the solutions to these exercises in Appendix A.

Get Beginning AppleScript® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.