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: Hans Haesler <email@hidden>
- Date: Thu, 28 Dec 2006 23:13:49 +0100
On Thu, 28 Dec 2006, Jan Bultereys wrote:
>Hi, I have a syntax problem with "grouped" boxes.
>When elements are grouped in 1 time in quark the outcome
>of this script is OK, but when the group exist of 2 or
>3 groups the outcome is zero.
Jan,
this snippet addresses group 1 of the main group:
---
tell document 1 of application "QuarkXPress 6.52"
tell group box 1
tell group box 1
count of picture boxes
end tell
end tell
end tell
---
When you've got a selection, but you don't know if
it contains any groups then this should work:
---
set nPicBox to 0
tell document 1 of application "QuarkXPress 6.52"
tell selection
tell every group box
set nPicBox to count of picture boxes
end tell
end tell
if nPicBox is 0 then
set nPicBox to count (every picture box whose selected is true)
end if
end tell
nPicBox
---
Regards,
Hans
_______________________________________________
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