• 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: Picking data from a record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Picking data from a record


  • Subject: Re: Picking data from a record
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 25 Sep 2004 20:42:25 -0700

On 9/25/04 3:27 PM, "Joseph Weaks" <email@hidden> wrote:

>>  It works just fine here. To be certain. use parentheses:
>>
>>      set finalResult to run script (testThis & " of parent's
>> testRecord")
>>
>>  But it works here (OS 10.3.5) even without them.
>
> No, it doesn't work OMM, with or without the ()'s. I'm running 10.3.5
> as well.  Emmanuel subtly explained it... adding "get" into the script
> text makes it work:
>
> set finalResult to run script testThis & " of (get parent's testRecord)"
>
> Are you sure you got it to work without the get, Paul? I do a  fair
> amount of script object mess to get at dynamically named variables.

Well, this is very odd:

It runs just fine in Script Debugger 3.0.8 without the 'get'.

In Smile 2.5.9, it errors "Can't get h of testRecord' without the 'get', but
runs fine with the 'get'.

In Script Editor 2.0, it errors "AppleScript Error:
NSCannotCreateScriptCommandError" both with and without the 'get'.

Which is absurd. A standard addition command (run script) should not depend
on which editor is running it.

In all three editors changing the last line to:

set finalResult to run script testThis
--> ERROR: The variable h is not defined

SD and Smile seem to contain slightly different coercions for evaluating
    run script "h of (get parent's testRecord)"

which exhibit the identical differences between editors. SD doesn't need the
'get', Smile does, SE won't cooperate at all. SE seems to be evaluating the
"h" on its own no matter if 'get' and parentheses are used. And h on its own
is an undefined variable.

--
Paul Berkowitz


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Picking data from a record
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Picking data from a record (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Re: Picking data from a record
  • Next by Date: Re: Picking data from a record
  • Previous by thread: Re: Picking data from a record
  • Next by thread: Re: Picking data from a record
  • Index(es):
    • Date
    • Thread