• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Quark Paragraph Numbers and other QuarkNewbie Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: Quark Paragraph Numbers and other QuarkNewbie Questions
      • From: Hans Haesler <email@hidden>
  • Prev by Date: Quark Paragraph Numbers and other QuarkNewbie Questions
  • Next by Date: Re: Netscape Navigator 6
  • Previous by thread: Re: Quark Paragraph Numbers and other QuarkNewbie Questions
  • Next by thread: RE: Quark Paragraph Numbers and other QuarkNewbie Questions
  • Index(es):
    • Date
    • Thread