• 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
Fwd: How the heck do you get records to work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: How the heck do you get records to work?
      • From: BJ Terry <email@hidden>
  • Prev by Date: Re: iCal scripting through UI
  • Next by Date: How to Mount iDisk?
  • Previous by thread: Re: iCal scripting through UI
  • Next by thread: Re: How the heck do you get records to work?
  • Index(es):
    • Date
    • Thread