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: 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