Re: UnGrouping of boxes
Re: UnGrouping of boxes
- Subject: Re: UnGrouping of boxes
- From: Hans Haesler <email@hidden>
- Date: Thu, 10 May 2001 22:19:15 +0200
On Thu, 10 May 2001, Michael Turner wrote:
>
I want to run though a document and ungroup all the pictures.
>
I can't make the sample below work. Why not? It has something to do with
>
selections, I think.
Hey Michael,
here is the first part of the answer. Please look at the _hierarchy_.
Use more nested tells, then you address the correct objects:
---
tell document 1 of application "QuarkXPress 4.11"
activate
set tool mode to drag mode
tell current spread
repeat with i from 1 to (count picture boxes)
tell picture box i
try
set selected to true
on error
end try
end tell
end repeat
end tell
end tell
---
I don't use "Menu Events" anymore, but I could install it, temporarily,
to help you, if the second half of your script won't work.
>
set tool mode to content mode
>
-- should reset tool, this line untested.
This should be: 'set tool mode to contents mode' and must be inside
of the 'tell document 1' block.
Best regards,
Hans
---
Hans Haesler | email@hidden