• 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: Hans Haesler <email@hidden>
  • Date: Thu, 16 Nov 2000 17:37:57 +0100

On Thu, 16 Nov 2000, Jason Bourque wrote:

>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

You're right but you didn't test your snippets did you?

The first one doesn't need the second line (in fact it generates
an error message because the selection is gone).
This works:
---
tell application "QuarkXPress 4.11"
copy return & tab to front of every paragraph of selection
end tell
---

The second snippet won't even compile. You'd better use something like:
---
tell document 1 of application "QuarkXPress 4.11"
set every character of every story where it is "a" to "b"
end tell
---

And it will be much faster when you replace 'character' by 'text':
---
tell document 1 of application "QuarkXPress 4.11"
set every text of every story where it is "a" to "b"
end tell
---

Hans

---
Hans Haesler | email@hidden


References: 
 >RE: Quark Paragraph Numbers and other QuarkNewbie Questions (From: "Bourque, Jason" <email@hidden>)

  • Prev by Date: Re: Netscape Navigator 6
  • Next by Date: Re: Most Scriptable Apps
  • 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