Re: Illustrator 10: Ungrouping Groups of Groups
Re: Illustrator 10: Ungrouping Groups of Groups
- Subject: Re: Illustrator 10: Ungrouping Groups of Groups
- From: Shane Stanley <email@hidden>
- Date: Thu, 14 Nov 2002 16:47:16 +1100
On 14/11/02 3:14 PM +1000, Jason Bourque, email@hidden, wrote:
>
On 11/13/02 5:09 PM, "Shane Stanley" <email@hidden> wrote:
>
>
> On 14/11/02 5:49 AM +1000, Jason Bourque, email@hidden, wrote:
>
>
>
>> Any ideas on how I can script Illustrator 10 to disassemble a group of
>
>> groups of groups?
>
>
>
> Just move the component groups:
>
>
>
> move every group of group 1 of layer x to end of layer x
>
>
>
> --
>
> Shane Stanley, email@hidden
>
>
>
Ok, it doesn't compile.
That's because I said "group" instead of "group item".
>
Does the layer have to be different from the one the
>
group is on?
No.
>
And how do you ungroup the items within the group.
Just move the items somewhere else. Play with this:
tell application "Adobe Illustrator 10"
make document
tell document 1
-- make some paths
repeat 15 times
make rectangle at end with properties {bounds:{0, 0, 100, 100}}
end repeat
-- make three groups
repeat with i from 1 to 3
make group item at end with properties {name:i as text}
move (path items 1 thru 5) to end of result
end repeat
--make new group
make group item at beginning with properties {name:"4"}
-- put old groups into new group
move (group items 2 thru 4) to end of group item 1
-- make second layer
make layer at end
-- move some stuff around
move group item 2 of group item 1 of layer 1 to end of layer 1
move group item 1 of group item 1 of layer 1 to end of layer 2
move path item 1 of group item 1 of group item 1 of layer 1 to end of
layer 1
move path item 1 of group item 1 of group item 1 of layer 1 to end of
layer 2
end tell
end tell
--
Shane Stanley, email@hidden
_______________________________________________
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.