Article Preview
Buy Now
COLUMN
AppleScriptable Applications
Implementing classes and events from the Standard Suite
Issue: 1.6 (June/July 2003)
Author: Thomas Reed
Author Bio: Thomas Reed has been programming as a hobbyist for more than 20 years, and fell in love with the Mac in 1984. Thanks to Patrick Wynne for help with some of the concepts in this article!
Article Description: No description available.
Article Length (in bytes): 9,927
Starting Page Number: 30
Article Number: 1615
Resource File(s):
1615.zip Updated: 2013-03-11 19:07:56
Related Web Link(s):
http://www.panix.com/~gmcgath/EightyRez.html
http://www.westcodesoft.com/downloads/
http://developer.apple.com/techpubs/mac/IAC/IAC-2.html
Excerpt of article text...
Last issue's column discussed the basics of creating an AppleScriptable application. This issue will expand on that information, demonstrating how to define and handle standard AppleScript commands, which are more complex. The primary focus of this column will be the implementation of classes in your application's AppleScript interface.
A class in AppleScript acts as a container for properties, much like a class in REALbasic. However, it does not define events or methods as can be present in a REALbasic class. In the sample ArbieText application from the last issue, the AppleScript commands only interact with windows and their contents; thus, a window class is obviously called for.
Before defining a class in the 'aete' resource, a suite must be defined to contain it. Since we want to give ArbieText a more standard AppleScript interface, objects and classes from the Standard Suite should be used. Therefore, the first step in building the new 'aete' resource is to define this suite.
...End of Excerpt. Please purchase the magazine to read the full article.