• 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: Why is a-b not equal to ((source of a) -b) ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Why is a-b not equal to ((source of a) -b) ?
      • From: John W Baxter <email@hidden>
References: 
 >Re: Why is a-b not equal to ((source of a) -b) ? (From: bill fancher <email@hidden>)

  • Prev by Date: Re: Why is a-b not equal to ((source of a) -b) ?
  • Next by Date: Re: URL Access Scripting-Form Data
  • Previous by thread: Re: Why is a-b not equal to ((source of a) -b) ?
  • Next by thread: Re: Why is a-b not equal to ((source of a) -b) ?
  • Index(es):
    • Date
    • Thread