Hello,
OK-here is my second revision request of the day
I was using this script, but I would love to run it away from my desk… In order to make it more automated, I have to modify a few things.
1-I would like it in the beginning to ask where I want my PDF’s to go. Right now, I pick the folder every time it asks in the save as dialog box. It won’t hold my last location, so I have to pick it every time. Would rather find away to maybe make that decision in the beginning so it defaults to that same location.
2-I also, am just making these pdfs for my own back ups, so I don’t need the art work that is linked or the missing fonts (as the ones that might show up missing are not critical)…
So, with that said, as the Quark files open, I want it to bypass the missing font dialog box, or have the computer select the continue button as its choice.
Then, once it goes to export the PDF, I need it to not ask for the images that are missing, or, if that is not possible, at least have the computer choose OK from the button choices so again, it just bypasses it…
If I can get it to do those things, I can drag a bunch of files onto it and just walk away…and that would be great.
see script below thus far…
thanks!!!
on open fileList
set deskPath to path to desktop as Unicode text
tell application "Finder"
repeat with i from 1 to count of items of fileList
set theFile to item i of fileList
if not ((kind of theFile starts with "Quark") or (kind of theFile starts with "InDesign")) then
display dialog "This file is not an InDesign or Quark document!" buttons "Skipping" default button "Skipping" with icon 0 giving up after 6
return
end if
--Determine whether to use InDesign subroutines or Quark subroutines
if (kind of theFile starts with "InDesign") then -- Process as InDesign
set fileName to name of theFile
my createInDesignPDF(theFile, deskPath, (text 1 thru -6 of fileName))
else -- Process as Quark
my createQuarkPDF(theFile)
end if
end repeat
end tell
end open
on createInDesignPDF(theFile, savePath, docName)
tell application "Adobe InDesign CS3"
open theFile
set theProps to properties of PDF export preset "[Press Quality]"
set newProps to {view PDF:true, crop marks:false, bleed marks:false, color bars:false, registration marks:false} & theProps
set oldProps to properties of PDF export preferences
set properties of PDF export preferences to newProps
export front document format PDF type to (savePath & docName & ".pdf") without showing options
set properties of PDF export preferences to oldProps
close front document saving no
end tell
end createInDesignPDF
on createQuarkPDF(theFile)
tell application "QuarkXPress"
open theFile
activate application
end tell
tell application "System Events"
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 5
click button "Save" of window "Export as PDF"
delay 5
end tell
end tell
tell application "QuarkXPress"
activate
close front document saving no
end tell
end createQuarkPDF