Re: Records
Re: Records
- Subject: Re: Records
- From: Martin Orpen <email@hidden>
- Date: Tue, 27 Sep 2005 13:56:49 +0100
On 27 Sep 2005, at 11:30, Nigel Garvey wrote:
You've forgotten not to try looping through a record and not to try
getting the property names of records as values in their own
right. :-)
It might have been less cruel to mention what I'd *remembered* about
records - that they were different from lists and... err... that was
about it for my recall last night.
After a refreshing night's sleep I've remembered that getting names
from records is a PITA. You can get the length and the values and
*see* the names but I can't work out how to script the retrieval of
both name and value :-(
Am I going to have to do something kludgy like dumping the record out
as an error and parse the result:
tell application "Font Book"
set a to item 1 of typefaces
set b to typeface additional info of a
try
b as string
on error errMsg
set d to errMsg
end try
end tell
Or is there some better method?
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Re: Records (From: "Nigel Garvey" <email@hidden>) |