Re: Quark--setting current page
Re: Quark--setting current page
- Subject: Re: Quark--setting current page
- From: Jay Young <email@hidden>
- Date: Mon, 29 Jul 2002 21:26:00 -0500
Hi Joe,
Try using 'show' from the QuarkXPress dictionary. Here's a sample
script that looks for a certain style sheet and when it finds it, it
highlights (selects) that paragraph and goes to that page. This works
with Quark 4.1 on OS 10.1.4 -- AS 1.8.2
Hope it helps!
Jay
-----------------------------------------
tell application "QuarkXPress"
activate
tell document 1
set x to 1
repeat
if name of style sheet of paragraph x of story 1 of text box 1 is
"Heading 3" then
set selection to paragraph x of story 1 of text box 1
show selection
exit repeat
end if
set x to x + 1
end repeat
end tell
end tell
-----------------------------------------
On Sunday, July 28, 2002, at 04:31 PM, Joe Millay wrote:
>
Hello--
>
>
I have a Quark Xpress document with one "story" broken up over many
>
pages. I
>
want to know what page a particular paragraph is on. I get every
>
paragraph
>
and if the style sheet is "X", I
>
>
"set selection to insertion point after character 1 of paragraph x of
>
story
>
1 of current box"
>
>
But, the current page is still page 1. The screen doesn't move to show
>
where
>
the new insertio point is. How do I make Quark go to that page? I've
>
tried
>
"do updates", but that doesn't work. Looping through each page, and then
>
getting the text just isn't feasible (due to reasons that are too
>
detailed
>
for this).
>
>
Ultimately--I have the object reference of a paragraph which is in story
>
that extends over many pages, over many text boxes, how do I tell which
>
page
>
that paragraph is on?
>
>
>
Thanks,
>
Joe
>
_______________________________________________
>
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.
_______________________________________________
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.