Fwd: How the heck do you get records to work?
Fwd: How the heck do you get records to work?
- Subject: Fwd: How the heck do you get records to work?
- From: Kurt Godden <email@hidden>
- Date: Thu, 22 Jan 2004 17:31:33 -0500
>
Sorry for the newbish question, but I'm having a heck of a time
>
figuring out how to access data from a record by referencing the key
>
with a variable. What I want to do is something like this:
>
set foo to {one:"1", two:"2"}
>
set bar to "one"
>
set baz to bar of foo
>
>
where baz then gets set to "1". But of course, the interpreter always
>
takes 'bar' as a literal and tells me it cannot find 'bar' within the
>
foo record. (value of bar) doesn't work either.
>
>
I'm sure this can be done, but the AppleScript reference manual
>
doesn't explain how, nor can I find it in "Applescript in a Nutshell".
>
>
Thanks in advance.
>
>
-Kurt
_______________________________________________
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.