Re: Quark:Vertical measure
Re: Quark:Vertical measure
- Subject: Re: Quark:Vertical measure
- From: Hans Haesler <email@hidden>
- Date: Sat, 21 Apr 2001 07:37:56 +0200
On Fri, 20 Apr 2001, Andrew wrote:
>
Is there a way to determine the vertical measure of a document?
Yes:
---
tell document 1 of application "QuarkXPress 4.11"
set vMes to vertical measure
end tell
---
The result is a constant like 'picas' (or 'inches' or 'points' or ...).
Up to QXP 4.04 these constants couldn't be used as conditionals, i.e. the
result of the following test was always 'false':
---
tell document 1 of application "QuarkXPress 4.11"
set vMes to vertical measure
if vMes = picas then
set msg to true
else
set msg to false
end if
end tell
---
You had to get them 'as text' (and I still do it this way):
---
tell document 1 of application "QuarkXPress 4.11"
set vMes to vertical measure as text
end tell
---
The result is a string like "UPIC" (or "UINC" or "UPNT" or ...).
Regards,
Hans
---
Hans Haesler | email@hidden