data-id=apple-events
Apple Events
Apple events can be used from programming languages such as C or from AppleScript. Because AppleScript is more straightforward, it is recommended for use with Distiller.
Distiller supports the application object and the following Apple events:
Distillrunquit
data-id=objects
Objects
data-id=90916
data-id=application
application
The top-level scripting object.
Elements
DocumentWindow
Properties
data-id=events
Events
data-id=75815
data-id=distill
Distill
Distills a file.
Syntax
Distill
sourcePath UnicodeText [destinationPath UnicodeText]
[adobePDFSettingsPath UnicodeText]
Parameters
Returns
A Boolean value indicating status. If true, the command succeeded.
Examples
These examples assume the presence of an appropriate tell – end construct, for example:
tell application "Acrobat Distiller 8.0"
[Your code]
end tell
Ensure each command is on one line without line breaks. Some of the following examples appear on two lines solely to fit the page.
Distill sourcePath "/hello.ps"
Distill sourcePath "/hello.ps" destinationPath "/Users/username/Desktop"
adobePDFSettingsPath "Standard"
Distill sourcePath "/hello.ps" adobePDFSettingsPath "/Library/
Application Support/Adobe PDF/Settings/"
The following example uses application properties to determine which settings file is used:
set distSetting to "Standard"
if (postScriptVersion as string) is equal to "3015.102" then
set distSetting to "High Quality"
end if
if locale is "CHT" then
set distSetting to "Smallest File Size"
end if
Distill sourcePath "/hello.ps" adobePDFSettingsPath distSetting
data-id=12807
data-id=quit
quit
Terminates the Distiller program.
Syntax
quit
data-id=39237
data-id=run
run
Launches the Distiller program and invokes its standard startup procedures.
Syntax
run