• 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: AppleScript and FOND Resources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript and FOND Resources


  • Subject: Re: AppleScript and FOND Resources
  • From: julifos <email@hidden>
  • Date: Sat, 22 Sep 2001 11:18:55 +0200

>Is there a way to use AppleScript to extract the printer font name from
>the style mapping table of a FOND resource?

Akua Sweets...

-- start script
tell application "Finder"
set i to (choose file of type "FFIL") -- fonts
set list_fonts to (the number of resources in i of type "FOND" with
their info)
-- returns info about every font into the case (Name, ID, Attributes)

set font_names to {}
repeat with the_font in list_fonts
set font_names to font_names & item 1 of the_font
end repeat
end tell

font_names
-- end script

The mapping table returns hexa digits. If you convert them into string,
you get the name but, how can you extract it from any amount of
"unordered" data?

JJ


  • Prev by Date: Re: What's the biggest barrier to wider AS adoption?
  • Next by Date: Re: What's the biggest barrier to wider AS adoption?
  • Previous by thread: AppleScript and FOND Resources
  • Next by thread: More Help w/ Dialog Director Needed
  • Index(es):
    • Date
    • Thread