Author Topic: Taking a Picture Effect off is a Quark script before it makes the PDF  (Read 1288 times)

0 Members and 1 Guest are viewing this topic.

Offline iBabs

  • Visitor
  • Posts: 2
  • Karma: 0
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

Code: [Select]
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


Offline Publi-Script

  • Administrator
  • Hero Member
  • *****
  • Posts: 596
  • Karma: 16
  • Gender: Male
  • Automate your Life!
    • Publi-Script.com
Re: Taking a Picture Effect off is a Quark script before it makes the PDF
« Reply #1 on: March 05, 2010, 03:12:19 PM »
Hi Babs and welcome to the forum,

I do not think Vista is scriptable (well maybe using UI Scripting) in any case I do not use it but, have you tried simply turning the Xtension off prior to run your script?
Michel Lemieux
Forum Administrator
-------------------------
OS X 10.6.4
Quark 6.5 / 7.5 / 8.1.6
Adobe Design Premium CS / CS2 / CS3 / CS4 / CS5
Script Debugger 4.5