Quark How to set bounds of multiple selected picture boxes?

Hi there,

is it possible to set the bounds of all selected picture boxes to bix fit?
And when how do I have to do that?

I can set the bounds to box fit for one picture box, but don’t know how to do this for multiple picture boxes.

Thanks for help,

Imion

I have it! :slight_smile:


tell application "QuarkXPress Passport"
	activate
	
	try
		if not (exists document 1) then error "No document is open."
		
		tell document 1
			

			set theSelected to every picture box whose selected is true
			set numberOfBoxes to count of theSelected
			

			repeat with x from 1 to numberOfBoxes
			set theBox to item x of theSelected
				
				tell theBox
					
					tell image 1
						set bounds to box fit
					end tell
				end tell
			end repeat
		end tell
	end try
end tell