View Single Post
You would probably need to make sure that 'it' refers to the window. Sth like:

Code:
if oWin is not missing value then
	tell oWin
		repeat with oCanv in canvases of its document
			set canvas of it to oCanv
			-- ZOOM TO FIT
			tell application id "sevs" to click mnuZoomFit
		end repeat
	end tell
end if