Re: Case sensitive find/replace
Re: Case sensitive find/replace
- Subject: Re: Case sensitive find/replace
- From: Stan Cleveland <email@hidden>
- Date: Thu, 20 Jul 2006 17:01:59 -0700
- Thread-topic: Case sensitive find/replace
On 7/20/06 4:44 PM, Robert Short wrote:
> Hi Stan,
>
> I am just catching up my messages and did not see a reply. Maybe this script
> will help you achieve what you need.
>
> tell application "QuarkXPress"
> activate
> set findText to "Formaat"
> set replaceText to "Format"
> tell current box of front document
> set i to count words
> repeat with x from 1 to i
> considering case
> if word x is findText then set word x to replaceText
> end considering
> end repeat
> end tell
> end tell
Actually, the OP was Jan Bultereys. I had posted a working solution to his
problem on Tuesday. I'm sure Jan doesn't mind, because it's always good to
have multiple solutions from which to choose. And yours avoids a lot of the
complexities of mine. Good job!
Cheers,
Stan
_______________________________________________
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