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

Re: How the heck do you get records to work?


  • Subject: Re: How the heck do you get records to work?
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 22 Jan 2004 17:27:55 -0800

On Jan 22, 2004, at 4:34 PM, BJ Terry wrote:

On Jan 22, 2004, at 2:31 PM, Kurt Godden wrote:

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".

Ironically, it can't be done, not in any way that's actually worth using. The only way to do something like that is to make record strings and "load script" it. I could give a more thorough explanation, but the short of it is, you probably wouldn't want to implement anything with records.

If by "anything" you mean "a key-value structure where you're making up keys on the fly", then yes. Records work perfectly well *if* you know ahead of time what all the labels are. However, they're utterly unsuited to doing true associative arrays, a la Perl's hashes. Yes, this is a known feature request.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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>
References: 
 >Fwd: How the heck do you get records to work? (From: Kurt Godden <email@hidden>)
 >Re: How the heck do you get records to work? (From: BJ Terry <email@hidden>)

  • Prev by Date: Re: Still more strange things ?
  • Next by Date: Fun with keychain scripting....
  • Previous by thread: Re: How the heck do you get records to work?
  • Next by thread: Re: How the heck do you get records to work?
  • Index(es):
    • Date
    • Thread