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

Lesson 13. Script Editor > Running a Script

Running a Script

There are many ways to run a script once it’s compiled and saved. For example, if you saved it as an application or application bundle, double-click it in the Finder or select it and choose Open from the Finder’s File menu. If you saved it as a script or a script bundle in one of the official Scripts folders, choose it from the Script menu in the menu bar to run it. (See Chapter 14, AppleScript Utility, for instructions about using the Script menu.)

In Script Editor itself, you can run a script even before you’ve saved it. Just click the Run button in the script window. If you haven’t compiled it yet, Script Editor automatically compiles it and, if successful, runs it. A typical usage pattern when developing a new script or editing an old script is to type some text, hit the Run button, dismiss the error dialog, type some more text, hit the Run button again, dismiss the error dialog, and so on, until you’ve got it right.


  

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