Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 1.4

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):

Download Icon 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.