• 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: bill fancher <email@hidden>
  • Date: Wed, 4 Sep 2002 22:21:12 -0700

On Wednesday, September 4, 2002, at 09:16 PM, Jon Pugh wrote:

At 10:53 AM -0400 9/4/02, email@hidden wrote:
1. "Direct object" has a higher precedence than subtraction. So,

osaxCommand - 5

parses as osaxCommand( -5 ), and not as (osaxCommand()) - 5

I think there's a bit in the osaxCommand's aete entry that controls the binding on the command. Yes, here it is in AEUserTermTypes.r:

boolean notTightBindingFunction, /* if the message has tight */
tightBindingFunction; /* binding precedence */

I think this is what "current date" uses to keep it from grabbing a direct parameter.

Here's the docs:

Searched ADC for tightBindingFunction
Displaying 0-0 of 0 - Search time: 0.02 seconds.

Pretty sad (especially so in light of the fact that the constant has been around more than 10 years). It's representative of the state of OSA documentation in general, e.g. there's no documentation on ANY of the stuff in ASDebugging.h. (Maybe that last isn't a big loss though, because AFAICT it doesn't work to begin with.)

That doesn't hobble just osax authors, but those trying to support scripting in applications as well. Small wonder we see so many bad implementations; it's largely guesswork.

--
bill
_______________________________________________
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: ASDebugging.h documentation
      • From: Emmanuel <email@hidden>
References: 
 >Re: Why is a-b not equal to ((source of a) -b) ? (From: Jon Pugh <email@hidden>)

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