Re: scripting horizontal guides in Quark
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