Re: Why is a-b not equal to ((source of a) -b) ?
Re: Why is a-b not equal to ((source of a) -b) ?
- Subject: Re: Why is a-b not equal to ((source of a) -b) ?
- From: John W Baxter <email@hidden>
- Date: Wed, 4 Sep 2002 22:55:42 -0700
At 11:46 -0700 9/3/2002, bill fancher wrote:
>
To convince yourself that GetMilliSeconds will eat what follows as a
>
"parameter" of some sort, though, try:
>
>
GetMilliSec "spud"
>
>
That isn't limited to GetMilliSec. If you've got Jon's commands, try:
>
>
the ticks {1, 2, 3}
>
>
Looking at the event that is sent in the first case:
>
>
MSec\MSec{ ----:"spud", &subj:'null'(), &csig:65536 }
>
>
we see that "spud" is sent as the direct object, even though
>
GetMilliSec doesn't take a direct object.
>
>
I'm sure Christopher Nebel could unravel the details for us.
With a few exceptions (boolean parameters being the obvious one;
transaction handling being another for the 5 people who use it),
AppleScript doesn't know what it's doing.
That is, it uses the dictionary to get the definitions of the terminology
in four-byte codes.
It doesn't use the dictionary to know that
GetMilliSec
doesn't want a direct object...it sees something that is syntactically a
direct object and sends it.
Try running this bit of nonsense, with Script Editor's (or Script
Debugger's) log window open:
beep without mercy
The script compiles happily, the machine beeps, and the log window shows
the raw Apple event (which once upon a time I could decode fairly
quickly...sigh: it's been too long). Stock Mac OS 10.2.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.