Re: Outcome is incorrect of grouped "group boxes"
Re: Outcome is incorrect of grouped "group boxes"
- Subject: Re: Outcome is incorrect of grouped "group boxes"
- From: Peter Waibel <email@hidden>
- Date: Wed, 3 Jan 2007 10:36:50 +0100
the example I have attached
gives me 2 different outcomes... Left gives me 3 picture boxes,
right gives
me 1 picture box, which doesn't make sense...
Let me know what you think
Hi Jan,
the document contains 6 nested group boxes.
Just 'ungroup' the boxes and you can see the difference of the left
an right group box.
There is something very strange in the document.
The document contains 2 picture boxes with the 'uniqueID' 23!
The script below will give you an idea of how to walk thru nested
groups.
Peter
set resultList to {}
tell application "QuarkXPress"
tell document 1
set group_List to every group box
repeat with aGroup in group_List
tell aGroup
set genericBox_List to every generic box
set groupContent_List to {}
repeat with aGenericBox in genericBox_List
set end of groupContent_List to {uniqueID of aGenericBox, box
type of aGenericBox}
end repeat
set end of resultList to {uniqueID, groupContent_List}
end tell
end repeat
end tell
end tell
return resultList
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden