Name

FontSync Extension

Dictionary commands

match against alias

Use this command to match the font information in one computer system with another computer’s font sets. The alias parameter must point to a Fontsync profile file. An example of match against is:

tell application "FontSync Extension" to match against
(alias¬ "Macintosh HD:Desktop Folder:font profile")

The “font profile” file could have been created with the create font profile command. match against then returns a list of match result objects, which are record types that report any problems with certain fonts. The match results look like this:

{class:match result, problem reported:mismatch, name:"Arial Narrow", font:2000, style:3}

See the match result class.

using fonts from alias

When you use match against withoutthe using fonts from parameter, then the command compares the computer system’s active fonts against the specified FontSync profile. If you want to compare two FontSync profile files, then use code such as the following:

tell application "FontSync Extension" to match against (alias
¬ "Macintosh HD:Desktop Folder:font profile") using fonts from
¬ (alias "Macintosh HD:Desktop Folder:FontSync profile")

This code phrase compares the two files “font profile” and “FontSync profile” and returns any mismatch information. This is an optional parameter.

with match options match options

You can use a different set of match options than those specified in the FontSync control panel by specifying a match options object with the with match options labeled parameter. An example is:

tell application "FontSync Extension" 
   set matchOpts to¬
   {class:match options, on options:{font names, font types, 
   glyphs, encodings, QuickDraw metrics, ATSUI metrics, kerning,
   WorldScript layout, missing data mismatches}, off options: 
   {advanced layout, print encoding}} 
   match against¬
   (alias "Macintosh HD:Desktop Folder:applescriptcode_Appen.txt")¬
   with match options matchOpts
end tell

See the match options class.

Dictionary classes

application

This class represents the FontSync Extension program. It is the target of the tell statement in the code:

tell app "FontSync Extension" to set quit delay to 30

match options

This class is a record type that looks like {class:match options, on options:{font names, font types, glyphs, encodings, QuickDraw metrics, ATSUI metrics, kerning, WorldScript layout, missing data mismatches}, off options:{advanced layout, print encoding}}. A record is one or more name/value pairs separated by commas and enclosed by curly braces ({}). In this case, some of the values are lists, such as all of the font characteristics that are “on” and therefore will be matched for each font in a profile or computer system, such as:

on options:{font names, font types, glyphs, encodings, QuickDraw
metrics, ATSUI metrics, kerning, WorldScript layout, missing data
mismatches})

A match options object is used with the with match options labeled parameter for the match against command. An example is:

tell application "FontSync Extension" 
   set matchOpts to¬
   {class:match options, on options:{font names, font types, 
   glyphs, encodings, QuickDraw metrics, ATSUI metrics, kerning,
   WorldScript layout, missing data mismatches}, off options: 
   {advanced layout, print encoding}} 
   match against¬
   (alias "Macintosh HD:Desktop Folder:applescriptcode_Appen.txt")¬
   with match options matchOpts
end tell

on options list of constants (read-only)

This on options property is a list of one or more of the following:

off options list of constants (read-only)

This off options property is a list of one or more of the following: