Chapter 2. Using Script Editor


If you're going to write and edit AppleScripts, you're going to need some sort of program to help you out. For that, Apple has graciously supplied you with the aptly named Script Editor program. Script Editor is AppleScript's bread and butterthe program you'll use for just about everything as you learn the language. It's a text editor, script runner, documentation viewer, and antifreeze solution, all rolled into one. And although there are other AppleScript editors available (listed on Sidebar 2.6), you'll be best off sticking with Script Editor for nowif only because it's free and included with your computer.

You can start Script Editor in several ways:

  • Double-click its icon in the Applications Since you're going to be using Script Editor a lot, you might even like to store its icon in the Dock or the Finder's Sidebar, where you'll have easy access at a moment's notice.

  • Open a script anywhere on your computer.

    You can drag a script from your Library Scripts folder to Script Editor's icon, for example.

  • In the Script Menu, choose Basics This is the best method if you're tight on screen space, because you don't have to open any new windows.



AppleScript. The Missing Manual
AppleScript: The Missing Manual
ISBN: 0596008503
EAN: 2147483647
Year: 2003
Pages: 150

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net