Re: Urgent Quark scripting problem
Re: Urgent Quark scripting problem
- Subject: Re: Urgent Quark scripting problem
- From: Luca BASSINI <email@hidden>
- Date: Sun, 7 Dec 2003 22:31:39 +0100
On 07/dic/03, at 22:11, Ken Tozier wrote:
I'm writing a script for a client that's using Quark 3.32 and have run
up against a problem using ordinals (before, after etc) to create text
boxes on odd numbered pages. On even facing pages, boxes created by my
script appear exactly where expected but on odd facing pages, boxes
get created off the left edge of the page in the pasteboard.
Vertically they are in the right place but horizontally, they're
wrong.
here's the snippet
tell application "QuarkXPress"
-- get name of page containing the currently selected box
-- as opposed to a page they may have scrolled to after selecting a
box
tell current box
set currentBoxIndex to index
end
-- get name of page containing selected box
set currentPageName to name of pages whose selected of text box
currentBoxIndex = true
-- create new text box on specified page
tell page currentPageName of document 1
make text box at before text box currentBoxIndex with properties
{bounds:{top, left, bottom, right}}
end
end
Above works perfectly on even facing pages but not on odd facing
pages. Anyone know how to force quark to create the box on an odd
page?
I can make it work if I use the "at beginning" or "at end" ordinals,
but these are less than ideal, because I want created boxes to be
either one index lower or higher than the selected box and moving
has proved problematic for several reasons.
Thanks for any help,
Ken
Ken,
try to put this statement just after the tell QuarkXPress statement:
set item spread coords to true
Luca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.