Re: Quark 4 and Group
Re: Quark 4 and Group
- Subject: Re: Quark 4 and Group
- From: Peter Wiherkoski <email@hidden>
- Date: Tue, 22 Oct 2002 10:40:35 +0200
>
>In a message dated 10/21/02 1:03:54 PM, Peter Wiherkoski writes:
>
>
>(OS 9.2.2/Quark 4.10r1)
>
>
>
>Hello, is there a way with AppleScript to find out if a box in Quark is
>
>grouped with another box?
>
>
Peter:
>
>
If you mean "is this box grouped with any other box?" then you could try
>
something like this:
>
>
tell document 1 of application "QuarkXPress"
>
set tool mode to drag mode
>
class of current box
>
end tell
>
>
if the result is "generic box" you've got a group.
>
>
I suspect, though, that you really want to know "is this box grouped with
>
another specific box?" Maybe something like this:
>
>
tell document 1 of application "QuarkXPress"
>
set tool mode to contents mode
>
set selected of text box 1 whose color is "red" to true
>
set tool mode to drag mode
>
set groupA to object reference of current box
>
set tool mode to contents mode
>
set selected of picture box 1 whose color is "blue" to true
>
set tool mode to drag mode
>
set groupB to object reference of current box
>
groupA is groupB
>
end tell
That "work-around" was good - and funny. It solved my simple problem. Thanks!
/Peter
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.