Question
Printing separations with applescript
Hello, i have a lil bit of a problem with the following script so if someone just drop a hint i would appreciate it:
Platform:
MacOsX Leopard 10.4.11
Indesign CS 2.0
The values defined are:
thedoc = document 1 of the Indesign Application
pPages = a single number (e.g.: 2)
presetUsed = string, name of the preset(in this case a preset with output set to separations and application built-in trapping)
pcolors = string of colors to be printed in csv form, eg: Pantone XXX,Process Black ... etc.
tell print preferences of theDoc
set page range of print preferences of theDoc to pPages
set (active printer preset) to presetUsed
set profile to "Generic CMYK Profile"
set bleed bottom to 10
set bleed top to 10
set bleed inside to 10
set bleed outside to 10
set mark offset to 0
set (print ink of every ink of theDoc) to false
set AppleScript's text item delimiters to ","
if length of text items of pColors > 1 then
set tItems to (text items of pColors)
repeat with vC in tItems
set (print ink of ink vC of theDoc) to true
end repeat
else
set (print ink of ink pColors of theDoc) to true
end if
end tell
tell theDoc
print without print dialog
end tell
Now the problem: the problem is that when printing with the "print without print dialog" option, the program just prints all the plates ignoring the settings in the print preferences declaration. This is not the same when the "print with print dialog" option is used. When using that option everything seems to be fine. However i need to work it out without using the print dialog. Any help regarding this issue is highly appreciated.
Thanks in advance and wish ya a wonderful day.
Platform:
MacOsX Leopard 10.4.11
Indesign CS 2.0
The values defined are:
thedoc = document 1 of the Indesign Application
pPages = a single number (e.g.: 2)
presetUsed = string, name of the preset(in this case a preset with output set to separations and application built-in trapping)
pcolors = string of colors to be printed in csv form, eg: Pantone XXX,Process Black ... etc.
tell print preferences of theDoc
set page range of print preferences of theDoc to pPages
set (active printer preset) to presetUsed
set profile to "Generic CMYK Profile"
set bleed bottom to 10
set bleed top to 10
set bleed inside to 10
set bleed outside to 10
set mark offset to 0
set (print ink of every ink of theDoc) to false
set AppleScript's text item delimiters to ","
if length of text items of pColors > 1 then
set tItems to (text items of pColors)
repeat with vC in tItems
set (print ink of ink vC of theDoc) to true
end repeat
else
set (print ink of ink pColors of theDoc) to true
end if
end tell
tell theDoc
print without print dialog
end tell
Now the problem: the problem is that when printing with the "print without print dialog" option, the program just prints all the plates ignoring the settings in the print preferences declaration. This is not the same when the "print with print dialog" option is used. When using that option everything seems to be fine. However i need to work it out without using the print dialog. Any help regarding this issue is highly appreciated.
Thanks in advance and wish ya a wonderful day.