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

Records


  • Subject: Records
  • From: Martin Orpen <email@hidden>
  • Date: Mon, 26 Sep 2005 22:38:55 +0100
  • Thread-topic: Records

My brain isn't working very well at the moment as I've just spent 24 hours
working on a retouching job which was broken by 4 hours spent on a camp bed
in the studio :-(

On the journey home I decided to take a closer look at the "additional
typeface info" record that I'd mentioned in my post from earlier today (a
quick script brings welcome relief from long retouching sessions) but I
couldn't extract the data.

When faced with records ISTR always having to do something along the lines
of :

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 can get the records by doing:

tell application "Font Book"
    set b to typeface 1
    set c to typeface additional info of b
end tell

-->
{
    |FBFaceSubFamilyName|:"Regular",
    |FBFaceCopyrightName|:"Copyright (c) 1994-2001 Apple Computer, Inc. All
rights reserved.",
    |FBFaceIsEnabled|:true,
    |FBFaceUniqueName|:"#GungSeo Regular;  5.0d2e1; Wed, Apr 14, 2004",
    |FBFaceTrademarkName|:"#Gunseouche is a trademark of Apple Computer,
Inc.",
    |FBFaceVersionName|:"5.0d2e1",
    |FBFacePostScriptName|:"JCkg",
    |FBFaceFamilyName|:"#GungSeo",
    |FBFaceLocation|:"/Library/Fonts/#Gungseouche.dfont",
    |FBFaceKind|:"TrueType",
    |FBFaceLanguages|:{
        "English",
        "Korean"
    },
    |FBFaceFullName|:"#GungSeo Regular",
    |FBFaceIsDuplicate|:false
}


Sleepy regards...

--
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

  • Prev by Date: Re: Dave Lyons
  • Next by Date: Re: number
  • Previous by thread: Re: "Choose file" bug?
  • Next by thread: Re: Records
  • Index(es):
    • Date
    • Thread