Resources - Lasso & Tango - Send Apple Events
Last Modified 8/19/03.
You can expand the functionality of both Lasso and
Tango by sending Apple Events to other
applications. For example, Lasso's apple event tags can add the username Diana,
password "chocolate" to your WebStar realm "TESTREALM" so you can allow your users to
maintain their own WebStar passwords.
[AE_Event: class='WWW‡', id='AUsr', target='WebStar', wait_reply='true']
'----':"Diana", AUpw:"chocolate", AUrm:"TESTREALM"
[/AE_Event]
You must have the optional Apple_Event_Tags.mod Lasso module loaded for this to work.
The double quotes should be the fancy kind created with the option left bracket and shift option left bracket
key combinations.
Blueworld provides the Lasso Capture AE control
panel that will get you pretty close to the syntax. For example, adding the password
through an applescript yielded:
[ae_event: target="WebSTAR", class='WWW, id='\AU]
r{'----':"Diana", AUpw:"chocolate", AUrm:"TESTREALM", &subj:'null'()
[/ae_event]
Pretty close. Just adjust the ID, take off the r{ and ignore anything after the ending quote of the AUrm value.
The Frontier root can be a pretty good source of apple event
information, too. If I go into system.verbs.apps.WebStar.addUser, I can see the apple event that Frontier
sends to WebStar to add a user, appleEvent (appID, 'WWW‡', 'AUsr', '----', x, 'AUpw', password, 'AUrm', realm).
Tango's apple event sending capabilities are not as powerful because Tango can't send
apple events to application's with object model based dictionaries. Most applications do have
dictionaries that are object model based. MondoMail doesn't
and is therefore a popular tool for Tango users. If you do need to control an application from Tango that has an
object model based dictionary, you have to use an applescript as a go between.
Back to the Top