• 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: "Gary (Lists)" <email@hidden>
  • Date: Tue, 01 Nov 2005 20:51:33 -0500

"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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Find and replace string
      • From: Steve Foster <email@hidden>
References: 
 >Re: Find and replace string (From: has <email@hidden>)

  • Prev by Date: Calling a handler in ASS project from applescript
  • Next by Date: Re: Rsync reliability?
  • Previous by thread: Re: Find and replace string
  • Next by thread: Re: Find and replace string
  • Index(es):
    • Date
    • Thread