Just a quick illustration of how useful APID is:
My wife still uses CS2 at work. We have a Riso digital duplicator which
we use for printing booklets, invitations, etc. When printing from
InDesign to the Riso machine, color management must be off or the blacks
get printed as dark gray (about 95% line screen). Well, I tried to help
out by printing a booklet, and like usual, I messed up and forgot to
turn off color management. (I'm really good at messing things up!) ;)
I decided to put an end to this problem, and create a solution which
would always cause InDesign to send to this printer (only) with color
management turned off. It took me a total of maybe 15 minutes...
// DontManageColorForRiso.jsx
// This script should be in the same folder as the document
DontManageColorForRisoSourceCS4.indd
// It is automatically called by the DontManageColorForRisoController
page item.
//events: docPrintConfigured,docPrinted
// Header - matches anonymous function trailer at bottom
(function(thePlugin)
{
main();
function main(){
var theEventCode = thePlugin.eventCode;
var doc = GetDocFromPageItem(thePlugin);
switch(theEventCode){
case "docPrintConfigured":TurnOffColorManagement(doc);break;
case
"docPrinted":app.colorSettings.enableColorManagement=true;break;
}
}
function TurnOffColorManagement(doc){
var printer = doc.printPreferences.printer;
if(printer.constructor.name!="String"){return}
printer=printer.toLowerCase();
if(printer.match(/riso/)){
app.colorSettings.enableColorManagement=false;
}
}
function GetDocFromPageItem (pageItem){
var guid = app.callExtension(0x90B6C,10014,pageItem);
return app.callExtension(0x90B6C,10009,guid);
}
// Trailer - matches anonymous function header at top
}
)(theItem);
--
Harbs
http://www.in-tools.com
... View more