Re: Flatten Artwork in Illustrator
Re: Flatten Artwork in Illustrator
- Subject: Re: Flatten Artwork in Illustrator
- From: Simon Topliss <email@hidden>
- Date: Wed, 3 Mar 2004 17:07:37 +0000
There isn't a 'flatten' command. You have to 'move' all the page items
to the end of a layer.
tell application "Adobe Illustrator 10"
set flatLayer to make new layer at end of document 1 with properties
{name:"Flattened"}
move page items of document 1 to end of flatLayer
delete (layers of document 1 whose name is not "Flattened") -- optional
end tell
You will need to add extra steps to unlock/show all layers, unlock/show
all page items. Watch out that the page items remain in the same order
afterwards (i.e. items from the first layer are still at the top.)
Simon
On 3 Mar 2004, at 1:51 pm, Steven Valenti wrote:
>
Can someone tell me how you would flatten all the layers (not knowing
>
how many layers) so artwork will be moved to one layer in the
>
document?
>
Also please show me what you looked under in the application's
>
dictionary to do this.
>
>
Thanks
>
_______________________________________________
>
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.
_______________________________________________
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.