Hi,
I have a bunch of Quark files that are using the picture effects feature in quark, that allow me to make some color corrections, just to accommodate our in house printer.
The script below, open a bunch of quark files and makes a PDF file of each documents, then closes without saving.
The Problem is, I need to find a way to turn off picture effects before the PDF is made. This way , the PDF does not have the color correction that was added in quark only.
can someone take a look at this and tell me if that is even possible. I cannot find anything specifically for picture effects in the applescript library…but maybe its called something else???
thanks!
babs
on open (ItemList)
repeat with thisItem in ItemList
processfile(thisItem, "drop")
end repeat
end open
on processfile(myfile, mymethod)
tell application "QuarkXPress"
activate
try
«event BBRSGLS2»
end try
if mymethod = "drop" then
open file (myfile as string) with Suppress All Warnings
end if
--Added delay 9/30/05 to try to allow for slow opening of documents on server.
try
delay 5
end try
end tell
try
tell application "System Events"
tell process "QuarkXPress"
tell menu bar 1
tell menu bar item "File"
tell menu "File"
tell menu item "Export"
keystroke return
tell menu "Export"
keystroke return
click menu item "Layout as PDF..."
keystroke return
end tell
end tell
end tell
end tell
end tell
delay 3
keystroke return
keystroke return
keystroke return
tell window "Export as PDF"
keystroke return
click button "Save"
end tell
end tell
end tell
delay 5
end try
if mymethod = "drop" then
tell application "QuarkXPress"
activate
close document 1 saving no
end tell
end if
end processfile