Re: A reference to
Re: A reference to
- Subject: Re: A reference to
- From: Jon Pugh <email@hidden>
- Date: Fri, 8 Aug 2003 21:17:37 -0700
At 4:07 PM -0600 8/8/03, Doug McNutt wrote:
>
Names, in assemblers are assigned to addresses in "core" memory, if anyone remembers what magnetic cores looked like.
I've got some magnetic core memory right here.
>
It appears that in AppleScript "a reference to" somehow implies an indirect reference in which the contents of a named variable is accessed and then used as an address in core where the value is stored. But perhaps it is really an address of a pointer in a memory manager which is a double indirect pointer. Whonoze? Apple's policy seems to be that we are not supposed to care.
This is a fine example of a little knowledge being dangerous. ;)
In AppleScript, references are known as "object specifiers" and they aren't pointers or handles. They are chunks of data which refer to objects by name, index, id or by testing them. Object references are hierarchical, which means they can refer to a series of objects which contain one another.
These object references are passed between AppleScript and applications, and since they need to cross application boundaries, they simply cannot be as low level as pointers and handles. Instead, they are data which get interpreted by applications to refer to objects which the application has chosen to expose to scripters.
>
Is there, somewhere, a list of reserved phrases in AppleScript? If so I would really like to search it for definitive definitions.
There is no limit to the number of reserved words, or phrases, in AppleScript since any application can add its own suites of reserved words to AppleScript's language.
In the particular case of Eudora, it doesn't support a very complex hierarchy of objects, nor does it support whose clauses, or test based references. However, simple references like "window 1" and "front window" are still object specifiers, and qualify as references regardless. Of course, Eudora's support for many of the "standard" events is spotty, as you've noticed.
Unfortunately, Eudora is not the only program with unique limitations, as others have painfully found out.
Jon
_______________________________________________
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.