• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: illustrator-scripting revisited
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: illustrator-scripting revisited
      • From: Shane Stanley <email@hidden>
References: 
 >illustrator-scripting revisited (From: Michael Stoll <email@hidden>)

  • Prev by Date: Re: Resurgence in AppleScript interest
  • Next by Date: Newbie question re records
  • Previous by thread: illustrator-scripting revisited
  • Next by thread: Re: illustrator-scripting revisited
  • Index(es):
    • Date
    • Thread