Re: AETE? How can I read these
Re: AETE? How can I read these
- Subject: Re: AETE? How can I read these
- From: Chris Nebel <email@hidden>
- Date: Thu, 06 Sep 2001 12:13:23 -0700
- Organization: Apple Computer, Inc.
Jeff Horton wrote:
>
On 9/6/01 10:35 AM, "Jean-Marie Hoornaert" <email@hidden> wrote:
>
>
> le 6/09/01 16:18, Jeff Horton a ecrit :
>
>
>
>> What program can I use to view the Apple Events resource of an application?
>
>> ResEdit? Or is this another program that is more in depth.
>
>
>
> You get the icon of an application.
>
> You drag and drop it on "Script Editor".
>
> Now, you see the aete resource of this application ;-)
>
I have been scripting for 6 years now with AppleScript and I know that I
>
need to use Script Editor to read the dictionaries, but I wanted to know how
>
to read the AETE resources of an application. I have seen before that people
>
call commands to an application that aren't in the "norm" of scripting
>
syntax used with chevrons instead.
The dictionary *is* the aete resource. When you see people using chevrons,
they're sending commands that aren't in the aete/dictionary, but the application
happens to respond to. It's sort of like going to In-n-Out Burger and asking for
your fries "well-done" -- it's not on the menu anywhere, but the cashiers know
what to do.
How do you find out these magic extra commands, since the aete won't tell you?
Ideally, some helpful person or documentation tells you; the only other way I'm
aware of (short of getting your hands on the application source code) is to grub
around in the Apple event handler tables with MacsBug. Even that will only tell
you the verb code -- to figure out what parameters the command takes, you'll need
to disassemble their code. Very ugly.
--Chris Nebel
AppleScript Engineering