This content has been marked as final. Show 4 replies
I don't have CS version, so I can't check your script. But I recomend you to save all print settings in a print preset and set it as active printer preset in your script. Another property you may need to set is page range, for example if you need to print each plate to a separate file/sheet.
tell application "Adobe InDesign CS3"
set myPrintPrefs to print preferences of active document
set active printer preset of myPrintPrefs to "Your preset name"
Thanks for your reply Kasyan. I really appreciate it.
However the script i'm trying to work out is doing exactly the things that you've mentioned (having a printer preset that is set as the active printer preset) except that my script is modifying a few settings of that preset(that's because i need a lot of custom printing, and having a separate preset for each one would make me create a dozen presets). However the thing that i dun really get is why this works when using the print display dialog, and why it doesn't work without the print dialog. The thing that i really dun seem to understand ... why if i add after the "tell preferences" end tell the line:
set numberOfActiveInks to (every ink of theDoc whose print ink is true)
display dialog ((length of numberOfActiveInks) as string)
will show the "correct" number of inks i want to be printed, but when it goes printing them it just prints them all. I'm pretty sure i'm overlooking something here but i dun seem to find out what exactly.
Thanks again for your time and have a wonderful day.
On 13/2/09 12:12 AM, "bogdan cosmin" <email@example.com> wrote:<br /><br />> the program just prints all the plates ignoring the settings in the print<br />> preferences declaration<br /><br />Why are treating inks as if they belong to print preferences? They actually<br />belong to the document; try addressing them outside your "tell print<br />preferences" block.<br /><br />-- <br />Shane Stanley <firstname.lastname@example.org><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>
Thanks Shane for your response and suggestion.
I tried moving the ink declaration out of the tell statement, but seems like this doesn't fix the problem. Again if i get the number of active inks just before the print statement, it shows the "correct" number of them but when printing them, it simply ignores settings and just prints all plates.
Thanks again both of you, Kasyan and Shane, for your time, patience and suggestions.