• 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: "Nigel Garvey" <email@hidden>
  • Date: Tue, 27 Sep 2005 11:30:54 +0100

Martin Orpen wrote on Mon, 26 Sep 2005 22:38:55 +0100:

>tell application "Font Book"
>    set b to typeface 1
>    set myList to {}
>    repeat with foo in typeface additional info of b
>        set end of myList to {name of (contents of foo), value of (contents
>of foo)}
>    end repeat
>end tell
>myList
>
>
>But that just gives me {}
>
>Can somebody tell me what I've forgotten to do while I go and lay in the
>bath?

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.  :-)

NG

 _______________________________________________
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: Martin Orpen <email@hidden>
  • Prev by Date: Re: "Choose file" bug?
  • Next by Date: Re: number
  • Previous by thread: Records
  • Next by thread: Re: Records
  • Index(es):
    • Date
    • Thread