• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quark:Vertical measure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Quark:Vertical measure (From: email@hidden)

  • Prev by Date: Re: Scripting Programs Linking - CRITICAL!!!
  • Next by Date: Can't switch startup disk. Please help!!
  • Previous by thread: Quark:Vertical measure
  • Next by thread: Re: Quark:Vertical measure
  • Index(es):
    • Date
    • Thread