Re: Event handler labels
Re: Event handler labels
- Subject: Re: Event handler labels
- From: Chris Espinosa <email@hidden>
- Date: Fri, 28 Jun 2002 07:47:14 -0700
On Friday, June 28, 2002, at 01:06 AM, Bernd Lvhr wrote:
we have an application which sents AppleEvents to a script (yes, that's
unusual!). Everything works fine except that inside the script we have
to use an ugly syntax like this for the handlers:
on +event 42apdone; theInboxName given +class fspe;:theFolderspec,
+class tsta;:theState
...
end
How can we replace the event and class OSTypes in the script with
proper names? I would prefer something like:
on receiving items to theFolderspec after finishing theInboxName
with theState ...
Is there a kind of reverse 'aete' resource?
No, you just define the terms in your application, and tell your
scripters to use the 'using terms from' construct:
using terms from application "Custom App"
on receiving items to theFolderspec after finishing theInboxName
with theState
....
end receiving terms from
end using terms from
Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.