• 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: kai <email@hidden>
  • Date: Sun, 26 Sep 2004 13:08:47 +0100


On Sat, 25 Sep 2004 21:16:53 -0700, Michelle Steiner wrote:


On Sep 25, 2004, at 8:42 PM, Paul Berkowitz wrote:

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.

What if you run it from an application or a script menu?

Good question, Michelle. At first, I put my own peculiar results down to testing in 10.2.8. However, Paul's analysis highlighted some interesting differences. The following script gave me the results indicated below - regardless of whether 'get' was used:


--------------------------------

set r to {h:"Height", w:"Width"}
set i to {1, "h", 2}'s item 2
display dialog (run script "(parent's r)'s " & i)

--------------------------------

Script Editor --> [error] "NSCannotCreateScriptCommandError"

Script Menu --> No result (the above error still occurs - but is not reported here)

Application --> [dialog] "Height"

---
kai

_______________________________________________
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


  • Prev by Date: Re: Picking data from a record
  • Next by Date: Re: keystroke using ... { } ... in PowerMail
  • Previous by thread: Re: Picking data from a record
  • Next by thread: Re: Picking data from a record
  • Index(es):
    • Date
    • Thread