QuarkXPress: UnGrouping of boxes
QuarkXPress: UnGrouping of boxes
- Subject: QuarkXPress: UnGrouping of boxes
- From: Michael Turner <email@hidden>
- Date: Thu, 10 May 2001 10:41:27 -0400
Hey Hans, et al!
I am getting frustrated. I keep getting stuck at 'easy'.
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.
tell application "QuarkXPress<TM> 4.1"
activate
set tool mode of document 1 to drag mode
repeat with i from 1 to (number of picture boxes of current spread)
tell picture box i
try
set selected to true
-- always errors here, and responds "Huh"
-- but "selection" doesn't work either.
display dialog "Alright."
set menuInfo to Query Menu menu title "Item"
if menu item enabled of item 11 of menuInfo is true then
Select Menu Item menu title "Item" menu item ID 11
--<<event ScrM~Grp>> -- same as above.
end if
on error
display dialog "Huh."
end try
end tell
end repeat
set tool mode to content mode
-- should reset tool, this line untested.
end tell