• 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: Records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Records
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Re: Records (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: "Choose file" bug?
  • Next by Date: Re: Tip for easy editing of droplets
  • Previous by thread: Re: Records
  • Next by thread: Re: Records
  • Index(es):
    • Date
    • Thread