• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Outcome is incorrect of grouped "group boxes"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Replace all caps into plain
  • Next by Date: Quirks of Annotate script
  • Previous by thread: Outcome is incorrect of grouped "group boxes"
  • Next by thread: Re: AppleScript-Users Digest, Vol 3, Issue 652
  • Index(es):
    • Date
    • Thread