![]() |
|||
|
AppleScript Basics AppleScript Dictionaries An AppleScript dictionary is organized into suites. Each suite includes a number of related commands and classes. Commands are like verbs--they tell an application to do something. Classes are types of objects that a command can be performed on. For example, in TextEdit's Standard Suite, close is a command that can be performed on an object such as window. Figures 93 and 94 (Below) show examples of AppleScript Dictionaries for two applications: Finder and TextEdit. In each illustration, the first suite is selected to display all commands and classes in that suite. On the left side of the window, suite names appear in bold text, commands appear in normal text, and classes appear in italic text.
Tip Script Menu Folder Actions How can Folder Actions help you? Here's an example. Suppose you're writing a book and every time you finish a chapter, you need to upload a copy of it to an FTP site so your editors can download and review it. You can write a script that uploads any new file added to a folder to the FTP site. Attach that script to a folder and voila! Every time you save a copy of a chapter to the folder, it is automatically sent for review. Tip MAC OS X 10.3 PANTHER ED: VISL QUICKSTRT GD, © 2004 Maria Langer Reproduced by permission of Pearson Education, Inc. Publishing as Peachpit Press. ALL RIGHTS RESERVED. To buy this book, visit www.peachpit.com |
Today's Tip
Recent Tips
Mac OS X Security: Open Firmware Password Moving files with copy and paste Troubleshooting External Devices
Featured Article
More Articles
Professional Editing Techniques Hacking Tiger: Inside Application Bundles The "Where'd It Go?" Dictionary (Mac Version) The "Where'd It Go?" Dictionary (Windows Version)
|
||
|
|||