I’m having some issues printing from illustrator, primarily in
1.) Selecting the correct Media Size for the paper I am printing to
2.) I would like to let my printer determine the colors, rather than Illustrator.
The following code is what I was using to try and set the paper height and width, but it is not working.
I do not know how I would change the Color Management from having Illustrator determine the colors, versus the Post Script Processor.
I would sincerely appreciate any advice.
Regards,
Ryan
on printDocument(pages)
tell application "Adobe Illustrator"
set theDocument to current document
tell theDocument
set h to height of theDocument
set w to width of theDocument
set paperOpts to {class:paper options, height:h, width:w}
set jobOpts to {copies:pages}
set printOpts to {print preset:"Tray2trans", job settings:jobOpts, paper settings:paperOpts}
--et printOpts to {print preset:"Tray2trans", job settings:jobOpts}
print theDocument options printOpts
end tell
end tell
end printDocument
I was able to figure out the paper size
on printDocument(pages)
tell application "Adobe Illustrator"
set theDocument to current document
tell theDocument
set paperName to "Tabloid"
set paperOpts to {class:paper options, name:paperName}
set jobOpts to {copies:pages}
set printOpts to {print preset:"Tray2trans", job settings:jobOpts, paper settings:paperOpts}
print theDocument options printOpts
end tell
end tell
end printDocument
Does anyone have any tips for how I can select the color management of the document I am printing?
In Illustrator CC this works.
print myDocument using "PrintTiff" without print dialog
Set up a print style in Illustrator.
Rob Roy
Hi,
first, i specify several print styles in Illustrator, then i call necessary style from script.
Like as
if myChoose is 1 then
-- set printOptions to {class:print options, print preset:"A3_wo_Bleeds"}
with timeout of 600 seconds
print current document options {class:print options, print preset:"A3_wo_Bleeds"}
end timeout
else if myChoose is 2 then
-- set printOptions to {class:print options, print preset:"A3_Cropmarks_fitPage"}
with timeout of 600 seconds
print current document options {class:print options, print preset:"A3_Cropmarks_fitPage"}
end timeout
else if myChoose is 3 then
-- set printOptions to {class:print options, print preset:"A3_Cropmarks_noScale"}
with timeout of 600 seconds
print current document options {class:print options, print preset:"A3_Cropmarks_noScale"}
end timeout
else if myChoose is 4 then
-- set printOptions to {class:print options, print preset:"A4_Cropmarks_noScale"}
with timeout of 600 seconds
print current document options {class:print options, print preset:"A4_Cropmarks_noScale"}
end timeout
end if
close current document saving no