Re: Getting label from a record (solution)
Re: Getting label from a record (solution)
- Subject: Re: Getting label from a record (solution)
- From: Christopher Nebel <email@hidden>
- Date: Tue, 18 Nov 2003 11:53:41 -0800
Not to dampen your spirits, since some of you seem to having a lot of
fun with this (for some definition of "fun"), but when AppleScript
doesn't provide a straightforward way to do something, you should
consider an alternate technique, if possible.
In this case, think about why you need to get the labels of a record.
Is it absolutely necessary to start with a record? If the answer is
"yes", because, say, you're getting it from somewhere else that you
don't control, then you're more or less stuck for it. If the answer is
"no", however, then consider an alternate data structure -- say, a list
where the odd values are the labels (as strings) and the even ones are
the data.
It's possible, of course, that any alternate technique will involve
even more code than the stuff people have been coming up with here, but
it's something to think about.
--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.