• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Event handler labels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Event handler labels


  • Subject: Re: Event handler labels
  • From: JJ <email@hidden>
  • Date: Sat, 29 Jun 2002 10:53:55 +0200

> 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?
>
> Thanks for any hints.

Hi.

If I understand your question, then you can "compile" not-raw-apple-events
using a trick, "loading" the terminology of your app in your script at
debugging-time.

I'm not sure, but I think that Script Debugger can do this via "default
target application".

Also, it does exists anywhere a very old tool, whose name I can't remember,
which is able to load the target app as a scripting component, so you can
compile terms of the "remote" app. If you're so interested, I could find
this in my archives...

Bye!

JJ
_______________________________________________
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.

  • Prev by Date: File with no path doesn't work
  • Next by Date: Setting Memory allocation for Desktop Printers
  • Previous by thread: Re: Event handler labels
  • Next by thread: re: Prompt with PSD 7 (& transfering script to a PC)
  • Index(es):
    • Date
    • Thread