Re: Replace all attributes font in a quark document.
Re: Replace all attributes font in a quark document.
- Subject: Re: Replace all attributes font in a quark document.
- From: Hans Haesler <email@hidden>
- Date: Tue, 12 Jun 2001 18:29:01 +0200
On Tue, 12 Jun 2001, Olivier Berquin wrote:
>
How can I change all the Times'font in italic by the I Times Italic in a
>
quark document?
Olivier,
one of my scripts is doing a similar task. It works well and is
pretty fast. But I don't know how it will perform with 80 pages...
---
tell document 1 of application "QuarkXPress 4.11"
activate
set tool mode to drag mode
set selection to null
try
tell every story
set (properties of every text style range where font is "Times" and style is italic) to {font:"I Times Italic", style:plain}
end tell
on error
end try
end tell
---
Please try this with a sample document first. Then, for the big run,
make a Run-only version and run it from OSA Menu. And hide the
measurements palette to speed up execution further.
BTW, text style ranges don't care about the delimiters of paragraphs...
Best regards,
Hans
---
Hans Haesler | email@hidden