Re: string as key to record
Re: string as key to record
- Subject: Re: string as key to record
- From: John Delacour <email@hidden>
- Date: Mon, 16 Sep 2002 23:43:28 +0100
At 2:05 pm -0700 16/9/02, john mead wrote:
Is it possible to use a string as a key to a record?
Is there a coercion that would work here?
set myRecord to {thingOne:"blah"}
set myKey to "thingOne"
get myKey of myRecord
set varKey to "a"
set varVal to "3"
set varRecord to run script "
{" & varKey & ":" & varVal & "}"
return a of varRecord
-- JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.