Special

Special Print Closeout!

We're clearing out the remainder of our print issues at fire sale prices -- as much as 75% off! Quantities are extremely limited and only available while supplies last. Hurry to take advantage of this one-time offer.

RBD Magazines

Once these printed back issues are gone, they are gone!

Article Preview


Buy Now

Print:
PDF:

AppleScript

More power to the user

Add some complexity to your verbs

Issue: 1.4 (February/March 2003)
Author: Dean Davis
Author Bio: Dean Davis runs AfterTen Software and is the creator of WeatherManX. He believes all programs should have some form of AppleScript interaction, if possible.
Article Description: No description available.
Article Length (in bytes): 3,537
Starting Page Number: 42
RBD Number: 1422
Resource File(s):

Download Icon 1422.sit Updated: Friday, October 17, 2003 at 12:20 PM

Related Web Link(s):

http://www.panix.com/~gmcgath/EightyRez.html
http://www.mathemaesthetics.com/ResorcererIndex.html

Known Limitations: None

Excerpt of article text...

In this article we'll be going back to the theme from issue 1.2 and add complexity to the verbs that your program exposes to the outside world.

Again, you'll need an 'aete' resource editor. Classic users can use the free editor EightyRez. It's available at http://www.panix.com/~gmcgath/EightyRez.html. OS X users can use Resourcer (http://www.mathemaesthetics.com/ResorcererIndex.html) but you have to pay for the privilege. The explanations presented here will be using EightyRez.

The easiest way to add functionality to your AppleScript verbs is to allow the user to pass in a parameter into your program. You can then act on this parameter and customize your response. The original application from issue 1.2 had a very simple AppleScript verb. Adding an inbound parameter to this verb is easy.

1) Using EightyRez open the "aete" resource "MyApp.aete".

2) Navigate into the "My Apps Suite" and then to the "TestAE" event.

3) Double click the event to bring up the event information.

The class and the ID are already defined as well as the expected return type.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com