Re: illustrator-scripting revisited
Re: illustrator-scripting revisited
- Subject: Re: illustrator-scripting revisited
- From: Jay Petronis <email@hidden>
- Date: Wed, 11 Jun 2003 13:24:43 -0600
Do you want to specify which layers to include? If not, you can
collect artwork into a new layer and autmatically expand groups using
something like this:
tell application "Adobe Illustrator 10"
set this_doc to current document
set source_items to every page item of this_doc
set locked of every layer of this_doc to false
-- create empty layer
make new layer at end of this_doc returning new_layer
set new_layer's name to "Item Depository"
move source_items to end of new_layer
end tell
But note that the line:
set source_items to every page item of this_doc
can destroy clipping masks and such, since it disregards grouping
entirely. If that's a problem, use "layer" in place of "page item."
Jay
On Wednesday, June 11, 2003, at 11:51 AM, Michael Stoll wrote:
we'd like to achive this in a given multi-layer-doc:
01. create a new layer behind all given layers
02. move all elements from layers above to that layer,
keeping the appropriate order
03. ungrouping an undisclosed number of group
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.