Quark Paragraph Numbers and other QuarkNewbie Questions
Quark Paragraph Numbers and other QuarkNewbie Questions
- Subject: Quark Paragraph Numbers and other QuarkNewbie Questions
- From: Xandra Lee <email@hidden>
- Date: Thu, 16 Nov 2000 10:33:28 -0500
1. How does one get the paragraph number(s) of a selection in Quark.
context: I've written a scriplet which creates a bullet list of selected
text, once this has been done I'd like to change the font of the first
character of each of these paragraphs.
The catch is that once I've "set contents of the selection " to
something, the text does not remain selected, so I need a way to refer to
the paragraph numbers of the original selection.
tell application "QuarkXPress 4.11"
set style sheet of every paragraph of the selection to "BulletList"
set oldText to paragraphs of the selection --> list of paragraph contents
set sel to offset of paragraphs of the selection
--> {4094, 4583} (character offset from where? story? doc? can this be
used?)
set pCount to count of paragraphs of the selection -->5
set newText to ""
repeat with i from 1 to pCount
set aPar to (item i of oldText)
set newP to ("