• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Find and replace string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Find and replace string
      • From: "Gary (Lists)" <email@hidden>
  • Prev by Date: Re: AS, wIP and 10.4.3: nothing's changed...
  • Next by Date: Re: Maybe OT: getting general information of a pdf file (demski)
  • Previous by thread: RE: Find and replace string
  • Next by thread: Re: Find and replace string
  • Index(es):
    • Date
    • Thread