RE: Quark Paragraph Numbers and other QuarkNewbie Questions
RE: Quark Paragraph Numbers and other QuarkNewbie Questions
- Subject: RE: Quark Paragraph Numbers and other QuarkNewbie Questions
- From: "Bourque, Jason" <email@hidden>
- Date: Thu, 16 Nov 2000 10:42:33 -0500
Your repeat loop could be replaced with
copy return & tab to front of every paragraph of selection
copy return to end of every paragraph of selection
As for your second question
>
2. HOW DOES ONE FIND/Replace text within Quark using Applescript I don't
>
see any commands for this?
>
set every character of every story of page 1 of document 1 of app "Quark"
whose character is "a" to "b"
Hope this helps
Jason Bourque
MFS Investment Management
>
----------
>
From: Xandra Lee
>
Sent: Thursday, November 16, 2000 10:33 AM
>
To: AppleScript Users
>
Subject: Quark Paragraph Numbers and other QuarkNewbie Questions
>
>
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 ("
>
" & tab & aPar & return) as string
>
set newText to newText & newP as string
>
end repeat
>
set contents of the selection to newText
>
end tell
>
>
2. HOW DOES ONE FIND/Replace text within Quark using Applescript I don't
>
see any commands for this?
>
>
>
xandra
>
a quark newbie
>
>
Alixandra Leigh
>
AceDesign
>
email@hidden