Adobe 26001360 - Illustrator CS - PC Manual page 133

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

Adobe Illustrator CS Scripting Guide
-- Make new text frame in the new layer (non-visible)
-- Make the new layer non visible
-- Print all layers
-- Print only visible layers
-- Print only visible and printable layer to file
--
set theDesktop to (path to desktop as string)
tell application "Illustrator CS"
activate
make new document
set the name of current layer of document 1 to "VPL"
make new text frame in document 1 with properties {contents:"Visible and
Printable", position:{200, 600}}
make new layer in document 1 with properties {name:"VnPL", printable:false}
make new text frame in layer "VnPL" of document 1 with properties
{contents:"Visible and Non-Printable", position:{200, 500}}
make new layer in document 1 with properties {name:"nVPL"}
make new text frame in layer "nVPL" of document 1 with properties
{contents:"Non-Visible", position:{200, 400}}
set visible of layer "nVPL" of document 1 to false
set printOptions to {class:print options, job settings:{class:job options,
designation:all layers, reverse pages:true}}
print document 1 options printOptions
set printOptions to {class:print options, job settings:{class:job options,
designation:visible layers, reverse pages:true}}
print document 1 options printOptions
set printOptions to {class:print options, job settings:{class:job options, file
path:(theDesktop & "printfile.ps" as string), designation:visible printable
layers, reverse pages:true}}
print document 1 options printOptions
end tell
12 Aug 03
133

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents