Re: How the heck do you get records to work?
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.