Hello,
This piece of code below is part of a larger script that opens up InDesign or Quark files, without any dialog warnings and creates a pdf file and places it in a particular folder on my desktop.
The InDesign part is fine…but the quark part sometimes gets hung up in the type of PDF it is to produce. In the InDesign part it specifically indicates to use the [smallest file size].
The problem is, in the code below, which is the Quark part, there is nothing to indicate which setting to use. So, it uses the default and checks for PDFX 1/A compliance, which I don’t want it to do. I would need it to choose a particular pdf setting, specifically:
Screen-Medium Quality/Low Resolution
If I could just get it to point that setting in quark, it would prevent the error from happening.
I have tried to add stuff after the Export to PDF options in this script, but no luck…
Does anyone know how to tell this applescript, that after they do the export to PDF in quark, to then choose that particular setting?
Here is the code I have so far for that section:
Thanks
Babs
tell application "QuarkXPress"
activate
open WorkingFile as alias with «class SPRS»
tell application "System Events" to tell process "QuarkXPress"
click menu item "Layout as PDF..." of menu 1 of menu item "Export" of menu 1 of menu bar item "File" of menu bar 1
delay 1
keystroke tempname
delay 1
keystroke "G" using {shift down, command down}
delay 1
keystroke PathToFolder
delay 1
click button "Go" of sheet 1 of window "Export as PDF"
end tell
repeat 2 times
delay 1
activate
tell application "System Events" to tell process "QuarkXPress"
try
if exists button "OK" of window 1 then
click button "OK" of window 1
end if
end try
end tell
end repeat
delay 1
tell application "System Events" to tell process "QuarkXPress"
try
click button "Save" of window "Export as PDF"
end try
end tell
repeat 4 times
delay 1
activate
tell application "System Events" to tell process "QuarkXPress"
try
if exists button "OK" of window 1 then
click button "OK" of window 1
end if
end try
try
if exists button "List Profiles" of window 1 then
click button "Continue" of window 1
end if
end try
end tell
end repeat
delay 2
close front document saving no
end tell
on error errmsg
display dialog "CreateQuarkPDF." & return & errmsg giving up after 20
end try
end createQuarkPDF
Browser: Firefox 3.6
Operating System: Mac OS X (10.6)