• 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: Font tracking and Dfont and otf information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font tracking and Dfont and otf information


  • Subject: Re: Font tracking and Dfont and otf information
  • From: Graff <email@hidden>
  • Date: Sat, 31 Jul 2004 21:48:47 -0400

Here's an example of how to get this kind of information. I copied the file "Apple Chancery.dfont" from /Library/Fonts/ to my desktop and then ran this AppleScript:
----
set theFile to choose file
tell application "Finder"
properties of theFile
end tell
----

The result was all of the properties of the file:

{class:document file, name:"Apple Chancery.dfont", index:5, displayed name:"Apple Chancery.dfont", name extension:"dfont", extension hidden:false, container:folder "Desktop" of folder "theuser" of folder "Users" of startup disk, disk:startup disk, position:{-1, -1}, bounds:{-33, -33, 31, 31}, kind:"Datafork TrueType font", label index:0, locked:false, description:missing value, comment:"", size:3.33686E+5, physical size:3.35872E+5, creation date:date "Wednesday, September 17, 2003 8:06:15 PM", modification date:date "Wednesday, September 17, 2003 8:06:15 PM", icon:missing value, URL:"file://localhost/Users/theuser/Desktop/Apple Chancery.dfont", owner:"theuser", group:"staff", owner privileges:read write, group privileges:read write, everyones privileges:read only, file type:missing value, creator type:missing value, stationery:false, product version:"", version:"4.1d1. Copyright ) 2002-2003 Apple Computer, Inc. All rights reserved."}

If you want any particular information just get it explicitly:
----
set theFile to choose file
tell application "Finder"
display dialog "" & name of theFile & return & version of theFile
end tell
----

- Ken

On Jul 29, 2004, at 9:33 PM, Gary Mielke wrote:

When you do an info on a DFONT or OTF font, you can expand the General
arrow to see more information such as the Kind, Size, Where, Created,
Modified, Version, Full Name and Copyright. Does anybody know how to access
this information with an Applescript running under OSX?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Font tracking and Dfont and otf information
      • From: Gary Mielke <email@hidden>
References: 
 >Font tracking and Dfont and otf information (From: Gary Mielke <email@hidden>)

  • Prev by Date: Re: Work aroun for "say" in Portuguese language.
  • Next by Date: Re: Font tracking and Dfont and otf information
  • Previous by thread: Re: Dfont and OTF Font information
  • Next by thread: Re: Font tracking and Dfont and otf information
  • Index(es):
    • Date
    • Thread