Re: Illustrator 10: Ungrouping Groups of Groups
Re: Illustrator 10: Ungrouping Groups of Groups
- Subject: Re: Illustrator 10: Ungrouping Groups of Groups
- From: Simon Topliss <email@hidden>
- Date: Fri, 15 Nov 2002 09:38:06 +0000
OK, try this. It will ungroup any amount of nested groups within groups, but
needs more testing than I've had time to do. One problem is that the
stacking order of the original group might not maintained. Might be able to
fix that, but I haven't had the time at the moment.
tell application "Adobe Illustrator 10"
my unGroup(group item 1 of current document)
end tell
on unGroup(groupItem)
tell application "Adobe Illustrator 10"
set origLayer to layer of groupItem
tell current document
set layerCounter to 1
repeat
if not (exists layer ("temp layer" & layerCounter)) then
set tempLayer to make new layer at end with properties [Opt L]
{name:"temp layer" & layerCounter}
exit repeat
else
set layerCounter to layerCounter + 1
end if
end repeat
move page items of groupItem to end of tempLayer
repeat
set groupItems to group items of tempLayer
if groupItems is not {} then
repeat with i from groupItems's length to 1 by -1
move page items of item i of groupItems to end of tempLayer
end repeat
else
exit repeat
end if
end repeat
move page items of tempLayer to end of origLayer
delete tempLayer
end tell
end tell
end unGroup
Simon
On 14/11/02 5:11 pm, "Jesper Storm Bache" <email@hidden> wrote:
>
I believe that Shane meant to say something like the following:
>
tell application "Adobe Illustrator 10.0.3"
>
move every page item of group item 1 of layer 1 of current document to end
>
of layer 1 of current document
>
end tell
>
>
(Shane - I apologize if I guessed wrong)
>
>
Jesper
>
>
>
At 11:14 PM 11/13/2002 -0500, Jason Bourque 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. Does the layer have to be different from the one the
>
> group is on?
>
> And how do you ungroup the items within the group.
>
>
>
> Jason Bourque
>
> _______________________________________________
>
> 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.
_______________________________________________
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.