O'Reilly logo

AppleScript in a Nutshell by Bruce W. Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

FontSync Extension

Syntax

(* 'tell app "FontSync"' targets the FontSync control panel. Make sure to 
specify "FontSync  Extension" if you are using the extension's commands 
not the control panel's. They are different applications! *)
tell app "FontSync Extension"
   set theProfile to (new file with prompt "Save the profile as: "¬
   default name "FontSync profile")
end tell

Dictionary commands

create font profile alias

This command creates a FontSync profile of the computer’s active fonts and stores it in the file represented by the alias parameter. You can use the new file scripting addition (which returns an alias type) to prompt the user to create a new file for the profile. This example creates a FontSync profile in the alias represented by the theProfile variable:

create font profile (new file with prompt¬
"Pick the FontSync profile file location"¬
default name "FontSync profile" )

with creator class

This property specifies the four-character creator type for the FontSync profile file. The default type is “‘fns’.” If you try to set this property to other creator types such as “R*ch,” then you will raise a script error.

version integer

As of FontSync 1.0, you cannot use this parameter without raising an error.

get reference to object

Use this command to get some FontSync Extension data such as:

tell app "FontSync Extension" to get version

match against alias

Use this command to match the font information in one computer system with another computer’s font sets. The alias ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required