• 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: Jan Bultereys <email@hidden>
  • Date: Tue, 02 Jan 2007 10:35:33 +0100
  • Thread-topic: Outcome is incorrect of grouped "group boxes"

Hi hans, thanks very much for your input, but 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
jan

> From: Hans Haesler <email@hidden>
> Date: Thu, 28 Dec 2006 23:13:49 +0100
> To: <email@hidden>
> Subject: Re: Outcome is incorrect of grouped "group boxes"
>
> 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:
> edepot.com
> Archives: http://lists.apple.com/mailman//archives/applescript-users
>
> This email sent to email@hidden

Attachment: test
Description: Binary data

 _______________________________________________
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

  • Follow-Ups:
    • Re: Outcome is incorrect of grouped "group boxes"
      • From: Peter Waibel <email@hidden>
  • Prev by Date: Re: Outcome is incorrect of grouped "group boxes"
  • Next by Date: adding target dependencies to an Xcode project using AppleScript
  • Previous by thread: Re: Outcome is incorrect of grouped "group boxes"
  • Next by thread: Re: Outcome is incorrect of grouped "group boxes"
  • Index(es):
    • Date
    • Thread