Re: Quark - problem with making a paragraph at end of a box
Re: Quark - problem with making a paragraph at end of a box
- Subject: Re: Quark - problem with making a paragraph at end of a box
- From: Hans Haesler <email@hidden>
- Date: Thu, 2 Aug 2001 22:00:05 +0200
On Thu, 2 Aug 2001, David Wadson wrote:
>
tell document 1
>
set view scale to fit page in window
>
repeat with i from startingNumber to endingNumber
>
make new paragraph at end of text box 1 with data i
>
end repeat
>
end tell
>
The above script ads incrementing numbers to the end of the text box on
>
page one of the document. Each consecutive numbers goes at the end. However,
>
when it reaches the end of the text box and inserts a new page, it still
>
inserts the numbers at the end of the box on page 1 causing the subsequent
>
pages to have the numbers in reverse order.
>
>
I've tried modifying the code to not reference text box 1 per se but had no
>
success. Is there a simple way to do this and keep the numbers in proper
>
lowest to highest order?
David,
your script does what you told him to do: make the paragraph at
end of text box 1.
Change this to address the end of 'story 1' then it should work:
---
set startingNumber to 1
set endingNumber to 100
tell document 1 of application "QuarkXPress 4.11"
set view scale to fit page in window
repeat with i from startingNumber to endingNumber
tell page 1
tell text box 1
make paragraph at after story 1 with data i
end tell
end tell
end repeat
end tell
---
Regards,
Hans
---
Hans Haesler <email@hidden>