Article View: adobe.scripting.indesign
Article #1378Printing separations with applescript
From: sph3rex
Date: Thu, 12 Feb 2009 13:12
Date: Thu, 12 Feb 2009 13:12
41 lines
2278 bytes
2278 bytes
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.
Technical Details
Message-ID:
<59b7e4d7.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,df6633b8b4c06544,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: sph3rex Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Printing separations with applescript Message-ID: <59b7e4d7.-1@webcrossing.la2eafNXanI> Date: Thu, 12 Feb 2009 05:12:41 -0800 Lines: 50 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit