Re: Picking data from a record
Re: Picking data from a record
- Subject: Re: Picking data from a record
- From: Joseph Weaks <email@hidden>
- Date: Fri, 24 Sep 2004 20:27:18 -0500
On Sep 24, 2004, at 12:05 PM, Joseph Weaks wrote:
It just takes creative use of the run script command to turn text into an object.
set testRecord to {h:"Height", w:"Width"}
set sampleData1 to {1, "h", 2}
set testThis to item 2 of sampleData1
Incidentally, I have no idea why this line works:
set finalResult to run script "set tempRecord to parent's testRecord
" & testThis & " of tempRecord"
but this line does not work:
set finalResult to run script testThis & " of parent's testRecord"
I'm sure it's overlooking something. Anyone feel free to explain it to me.
Joe Weaks
_______________________________________________
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