Re: Find and replace string
Re: Find and replace string
- Subject: Re: Find and replace string
- From: has <email@hidden>
- Date: Tue, 1 Nov 2005 23:27:48 +0000
Steve Foster wrote:
>I am trying to work out a simple find and replace script.
>
>I need it to replace a ^ with a carriage return.
>[...]
>Everything I can find on the list seems overly complicated for such a
>simple task (using RegExp and shell script).
Unfortunately, AppleScript's standard library is not one of its better features.
Using TextCommands <http://freespace.virgin.net/hamish.sanderson/index.html#textcommands>:
tell application "TextCommands"
search txt for "^" replacing with return
end tell
HTH
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
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