Outcome is incorrect of grouped "group boxes"
Outcome is incorrect of grouped "group boxes"
- Subject: Outcome is incorrect of grouped "group boxes"
- From: Jan Bultereys <email@hidden>
- Date: Thu, 28 Dec 2006 12:31:11 +0100
- Thread-topic: Outcome is incorrect of grouped "group boxes"
Title: Outcome is incorrect of grouped "group boxes"
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.
Any help is much appreciated
jan
--- snip ---
tell application "QuarkXPress Passport"
tell document 1
activate
set theobject to object reference of the selection
repeat with i from 1 to (count every picture box of theobject)
end repeat
end tell
end tell
--- snip ---
Example of 16 elements (pictures and textboxes grouped with select all and then group in quark)
Correct outcome:
tell application "QuarkXPress Passport"
activate
get object reference of selection of document 1
group box 1 of document "GF1F07-256_95"
count every picture box of group box 1 of document "GF1F07-256_95"
16
end tell
Example of 16 elements (pictures and textboxes grouped with select 6 elements and then group in quark,
then select 10 elements and then group in quark, then select both groups and made 1 group)
wrong outcome:
tell application "QuarkXPress Passport"
activate
get object reference of selection of document 1
group box 1 of document "GF1F07-256_95"
count every picture box of group box 1 of document "GF1F07-256_95"
0
end tell
_______________________________________________
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