• 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: Emmanuel <email@hidden>
  • Date: Mon, 27 Sep 2004 20:30:00 +0200

At 6:37 PM +0100 27/09/04, has wrote:
p.s. In my copy of Smile (2.6.5), 'run script sourceString' always seems to follow the standard behaviour

Not really :-)

Try this in Smile, and try it in Script Editor (I mean, just suppose you did):

run script "quietmsg(pi)"

Of course, you are right: on a "standard" script the behavior is the same.

and I don't see an <<event sysodsct>> handler defined anywhere in its aete,

... so you wonder: why "run script" in Smile would be different then?

It is that, whatever you compile in Smile, you compile with Smile's global context as its parent. It's not "run script" which is different, it is Smile's compilation context.

so Joe's script didn't work for me at all there. (Not that I'm complaining, mind, but just thought I should note it.)

Not that I'm replying :-)

I'm not sure to know exactly what "Joe's script" really means. On my machine (10.2.8/Smile 2.6.6), this works (in the interpreter as well as in a script window):

set testRecord to {h:"Height", w:"Width"}
set sampleData1 to {1, "h", 2}
set testThis to item 2 of sampleData1
set finalResult to run script testThis & " of (get parent's testRecord)"
 -- "Height"

and it errors "Can't get h of testRecord" without "get".

Emmanuel
_______________________________________________
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


References: 
 >Re: Picking data from a record (From: has <email@hidden>)

  • Prev by Date: Re: [OT] I don't want to whine, but...
  • Next by Date: Re: [OT] I don't want to whine, but...
  • Previous by thread: Re: Picking data from a record
  • Next by thread: Get HFS Path of POSIX Path?
  • Index(es):
    • Date
    • Thread