Re: Picking data from a record
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