Page Height in Quark 6.1 problem

hello,

Can anyone help me with a problem. I want to Get the Page Height from page 1 of a document. I don’t want to change it. This is my code:


tell application "QuarkXPress Passport"
	tell document 1
		set height_of_new_textbox  to (page height of page 1) + 1 as real
	end tell
end tell

If i will do this a error will return with the message:
Can’t make «data FXVM02F4D9B3» into a number

When I get the properties of a document with applescript then I will see the the same in my event window as in my error.

Can someone help me.

greetings bastiaan

Hi,

tell application "QuarkXPress"
	set pagebounds to bounds of page 1 of front document as list
	set pgh to item 3 of pagebounds as real
end tell

Here is a slightly different way of doing the same thing


tell application "QuarkXPress"
	activate
	tell document 1
		set PageHeight to height of bounds of current page as real
	end tell
end tell

Nice tip! I’m writing that down.

Tell app "QuarkXPress" to set PageHeight to height of bounds of current page of document 1 as real

Thanks mcgrailm! There’s so many shortcuts and easier ways to express things…I’ve got so much to learn.

There always seem sot be many ways to accomplish the same thing :slight_smile:

mm