Automating project workflow is crucial to today’s prepress and design workplaces. FontAgent Pro is perfect for these applications because you can use AppleScript to automate virtually all of its functionality.
AppleScript is an English-like language you can use to write scripts that automate the actions of your Mac and the applications that run on it. When you want your Mac applications to work together in harmony, AppleScript becomes the lingua franca that makes them all talk to each other. Using it, you and your applications become a lot more productive.
![]()
If your project workflow uses fonts, FontAgent Pro is the font management tool you need to automate your workflow. While old versions of Suitcase supported AppleScript, the current versions of Extensis Suitcase Fusion 2 and Extensis Universal Type Server (UTS) client do not, nor does FontExplorer X.
How you can use AppleScript
There are lots of things you can automate with FontAgent Pro scripts. One of the most useful scripts imports and activates fonts when you drag a folder of fonts onto an AppleScript application.
Here is an example of how this might be useful:
It is common for prepress service providers to receive many different jobs from different clients during the day. Service providers usually receive fonts in a Package or in a folder created by a Collect for Output command. These fonts need to be imported into FontAgent Pro and activated to open the application file in the project.
Using AppleScript and FontAgent Pro, you can create a droplet application where you can drag the folder of files provided by a client (which in this example is named by job number) and the fonts contained will be automatically imported into a unique library with the same name as the folder. The script also deactivates all other fonts, and then activates the library you just imported so you can be sure you are using the exact fonts provided by the client. Without doing this, you cannot be sure that the job will rip and print as expected. After running this script, you are ready to launch whatever application your client used to create the application file and proceed.

If you just want to get the script and start rolling, you can download it here and unzip it on your desktop and you are good to go.
The script is provided as is, but if you have any questions or suggestions, you can contact us at Insider Technical Support.
The script
The text for the script is below:
set afolder to these_items
set {name:folderName} to info for afolder
try
tell application "FontAgent Pro"
set DB to default database
tell DB
– this section deactivates all fonts in FAP
set LibList to every library
deactivate fonts LibList
– get the path to where libraries are kept and returned a as a POSIX path
set LibFolder to library path of first library as POSIX file
– build path to new libary
tell application "Finder" to set libpath to POSIX path of (container of folder LibFolder as string) & folderName
end tell
set NL to new library in DB with properties {library name:folderName, library path:libpath}
import fonts afolder options {destination library:NL, activate after importing:true}
end tell
on error the error_message number the error_number
display dialog "Error: " & the error_number & ". " & the error_message buttons {"OK"} default button 1
end try
end open
If you copy and paste the text into Script Editor, you may get a syntax error when you attempt to compile the script. This is most likely because the quotation marks in the text are smart quotation marks or curly quotes as opposed to the straight dumb quotation marks. Just do a find-and-replace with the dumb quotes and you can edit the script from there, or just download the script from the link provided above.
How to use the script
Simply take a folder of fonts and give it a name. This example uses a folder created from a package-for-output InDesign CS 4 project, and it’s named with a five-digit project number.

Drag the folder onto the FAPDragActivator icon on your desktop and let the script do its stuff.

From the screenshot below, you can see that the fonts were imported into FontAgent Pro (in a library named after the folder) and are indicated active with a green activation sphere. Also notice all the other fonts in the collection are deactivated.

The fun doesn’t have to stop here. This script can be integrated into a larger script that further automates your workflow. This script could activate the fonts and could hand the document off to InDesign or QuarkXpress to print a soft proof using a preset print setting.
In future posts we will talk more about using AppleScript to automate font-related workflows. Stay tuned to the Insider Blog.
Tags: AppleScript, automation, FontAgent Pro, scripts, workflow
