• 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: Steve Foster <email@hidden>
  • Date: Wed, 2 Nov 2005 10:10:09 +0000

Thanks everyone for your help.

Steve


On 2 Nov 2005, at 01:51, Gary (Lists) wrote:

"has" wrote:

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).

You just have to learn some AppleScript (very little, actually, to do this
job.)


Using TextCommands

tell application "TextCommands"
search txt for "^" replacing with return
end tell

Okay, so for external application methods, then Smile is choice also:

    change "^" into return in strString

--
Gary

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


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
References: 
 >Re: Find and replace string (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: Find and replace string
  • Next by Date: Re: Combining event handlers
  • Previous by thread: Re: Find and replace string
  • Next by thread: Re: Find and replace string
  • Index(es):
    • Date
    • Thread