Article Preview
Buy Now
COLUMN
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): 4,355
Starting Page Number: 42
Article Number: 1422
Resource File(s):
1422.zip Updated: 2013-03-11 19:07:56
Related Web Link(s):
http://www.panix.com/~gmcgath/EightyRez.html
http://www.mathemaesthetics.com/ResorcererIndex.html
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.
...End of Excerpt. Please purchase the magazine to read the full article.