Re: Replace word BUT with same pointsize/linespace
Re: Replace word BUT with same pointsize/linespace
- Subject: Re: Replace word BUT with same pointsize/linespace
- From: Stan Cleveland <email@hidden>
- Date: Mon, 17 Jul 2006 12:54:42 -0700
- Thread-topic: Replace word BUT with same pointsize/linespace
On 7/17/06 3:58 AM, Jan Bultereys wrote:
> Hi, does anyone know how to select a word/words in Quark and replace it with
> an other word/words BUT with the same pointsize/leading?
>
> Any help is much appreciated
The following code should do what you need. You can address the text box
either by index, as shown, or by name, if you've assigned it one.
tell application "QuarkXPress"
tell page 1 of document 1
try
set every text of story 1 of text box 1 ¬
whose it = findText to replaceText
on error number -10006 -- search string not found
-- handle the error, as desired
end try
end tell
end tell
Stan Cleveland
Color Technology Inc.
Portland, Oregon
"Everything should be made as simple as possible, but no simpler." -- Albert
Einstein
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden