• 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: scripting horizontal guides in Quark
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting horizontal guides in Quark


  • Subject: Re: scripting horizontal guides in Quark
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 05 Dec 2001 12:30:43 +1100

On 5/12/01 11:54 AM +1000, billp, email@hidden, wrote:

> Does anyone know if there's a way to automate the placement of
> a horizontal text guide (which visually runs vertical) to exactly
> overlap the blinking cursor in a text box? What would be the
> way to tell Quark to place the guide there? Is this even possible?

This should get you started:

tell application "QuarkXPress 4.11"
tell document 1
set x to horizontal offset of selection as point units as real
set y to left of bounds of text box 1 of selection as point units as real
make new vertical guide at end of current page with properties
{position:(x + y) as point units}
end tell
end tell

Just be careful that "current page" is the page you want.

--
Shane Stanley, email@hidden


References: 
 >scripting horizontal guides in Quark (From: billp <email@hidden>)

  • Prev by Date: Re: Script problems with BBEdit 6.5
  • Next by Date: RE: Sending info from one script to another
  • Previous by thread: scripting horizontal guides in Quark
  • Next by thread: Re: scripting horizontal guides in Quark
  • Index(es):
    • Date
    • Thread