Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Part 2: Understanding AppleScript > Organizing Your Code with Script Objects

Chapter 19. Organizing Your Code with Script Objects

Script objects are probably the most underutilized complex feature in the AppleScript language. This chapter explains the idea behind script objects and what they can do, and it discusses real-world techniques for putting them to effective use in your projects.

Initially, it is difficult to see what's so great about script objects. After all, many AppleScript users manage to create terrific scripts that do everything they want without ever going near script objects. So, what's all the hoopla about? Well, if your scripts are fairly small and simple, you can just ignore script objects altogether—good tidiness and a smattering of handlers are all you normally need to organize that sort of code effectively. On the other hand, if you plan to develop large, sophisticated AppleScript systems, you will need much more powerful tools to manage that complexity...and that's where script objects really shine.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial