G'day
I'm adding two text boxes to an illustrator CS6 document with Applescript, but when I go to print, I get an error 'Cannot print the illustration. The Color Management settings are inconsistent.'
The error message is not error trappable.
I have to barcode thousands of documents a year, and this is a big deal breaker. Is there any fix, please?
Regards
Brian Christmas
try set printerName to my theLargePagePrinter as string set paperOptions to {class:paper options, name:largePaperSize} set jobOptions to {class:job options, designation:all layers} # , print options:printOptions} set colorOptions to {class:color management options, profile kind:printer profile} set flatOpts to {class:flattening options, clip complex regions:true, gradient resolution:360, rasterization resolution:360} set printOptions to {class:print options, printer name:printerName, paper settings:paperOptions, flattener settings:flatOpts, job settings:jobOptions, color management settings:colorOptions} try set p to 17 tell application "System Events" to tell process "Adobe Illustrator" click menu item "Fit to Artwork Bounds" of menu 1 of menu item "Artboards" of menu 1 of menu bar item "Object" of menu bar 1 end tell end try set p to 18 say 7 print document 1 options printOptions say 8 on error errmsg number errnum tell application "System Events" to display dialog "Error in printing illustrator document. " & errmsg & " number " & errnum giving up after 40 end try |