• 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: "Bob.Kalbaugh" <email@hidden>
  • Date: Sat, 17 Nov 2001 10:38:27 -0500

on 11/16/01 7:01 PM, Carlos Cavazos at email@hidden 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. Well, I can
> create a new document, it's just the convert part I'm having problems
> with.
>
> Thanks, Carlos


Well, If you have a document open, and you know thats it's set to inches and
you just want to convert it to picas, make some changes and reset to inches,
then this should help:

--

tell application "QuarkXPress 4.11"

tell document 1

-- convert measurements
set horizontal measure to picas
set vertical measure to picas

-- do pica related script stuff

-- reset measurements
set horizontal measure to inches
set vertical measure to inches

end tell -- document

end tell -- QXP

--

If you want to have more control when creating the document, try something
like this:(watch wrapping line)

--

tell application "QuarkXPress 4.11"

make new document at beginning with properties {page width:"42p", page
height:"60p", horizontal measure:picas, vertical measure:picas}

tell document 1

-- do pica related script stuff

-- convert to inches
set horizontal measure to inches
set vertical measure to inches

end tell -- document

end tell -- QXP

--

Hope that helps,

bob.kalbaugh


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

  • Prev by Date: Re: Store Script Madness
  • Next by Date: Converting Measurements in Quark?
  • Previous by thread: Re: Converting Measurements in Quark?
  • Next by thread: "original item of" activates Finder!?
  • Index(es):
    • Date
    • Thread