• 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: Converting Measurements in Quark?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting Measurements in Quark?


  • Subject: Re: Converting Measurements in Quark?
  • From: Hans Haesler <email@hidden>
  • Date: Sat, 17 Nov 2001 08:54:07 +0100

On Fri, 16 Nov 2001, Carlos Cavazos wrote:

>I would like to know if anybody knows how to make applescript that will
>create a new document and convert (if already in inches) from inches to
>picas. And then back to inches at the end of the script.

Carlos,

you say "if already in inches". That's the way I use in my scripts:
I don't like to make unnecessary actions. So I test if the current
measurement units are not already in the desired unit. The properties
are only modified if this is not the case.
---
tell application "QuarkXPress 4.11"
activate
make document at beginning
tell document 1
if vertical measure is not picas or horizontal measure is not picas then
set properties to {vertical measure:picas, horizontal measure:picas}
end if
-----
-- do your stuff
-----
set properties to {vertical measure:inches, horizontal measure:inches}
end tell
end tell
---

Regards,

Hans

---
Hans Haesler <email@hidden>


References: 
 >Converting Measurements in Quark? (From: Carlos Cavazos <email@hidden>)

  • Prev by Date: Re: Converting Measurements in Quark?
  • Next by Date: Terminal and Telnet (OS X)
  • Previous by thread: Re: Converting Measurements in Quark?
  • Next by thread: Re: Converting Measurements in Quark?
  • Index(es):
    • Date
    • Thread