Re: Converting Measurements in Quark?
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>