Re: Case sensitive find/replace
Re: Case sensitive find/replace
- Subject: Re: Case sensitive find/replace
- From: Jan Bultereys <email@hidden>
- Date: Tue, 25 Jul 2006 10:46:04 +0200
- Thread-topic: Case sensitive find/replace
Thanks to all persons who gave there input...
Just a question, how would you implement multiple words, in the script
below? I want to replace multiple word with this script.
eg: change Formaat to Format
eg: change formaat to format
eg: change Size to Groote
eg: change size to groote
eg: change color to kleur
eg: change Color to Kleur
...
Best regards,jan
> From: Stan Cleveland <email@hidden>
> Date: Thu, 20 Jul 2006 17:01:59 -0700
> To: "email@hidden" <email@hidden>
> Conversation: Case sensitive find/replace
> Subject: Re: 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:
> edepot.com
>
> This email sent to email@hidden
_______________________________________________
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