• 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: Replacing a character/word
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacing a character/word


  • Subject: Re: Replacing a character/word
  • From: "Domains4Days.com" <email@hidden>
  • Date: Tue, 17 Dec 2002 09:50:04 -0800

Thanks Marc and Emmanuel

Hi Marc ,

sorry for not being more descriptive ... Basically, I simply wanted to
replace a phrase on the clipboard ... And then put it back on the
clipboard.

... Specifically - I would like to replace the return character out of
several paragraphs of text - with dash "-"

so:

Para 1

Para 2

looks like:

Para 1-Para 2


= Hopefully all this could be done on the clipboard, and when I paste it - I
get that result...

Thanks -

=== I will try this and hopefully it will work well...

-------------untested
on Replace(x, a, b) -- "this is a test of replace", "test", "cool test"
set text item delimiters to a
set x to text items of a -- {"this is a ", " of replace"}
set text item delimiters to b
set x to x as list - "this is a cool test of replace"
return x
end
---------------------


On 12-16-02 11-05 PM, "Marc S.A. Glasgow" <email@hidden> wrote:

> First and foremost, where you want to do this replacement?

--
RevDave
email@hidden

Check out some great Domain Names at:
http://www.domains4days.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Replacing a character/word
      • From: Emmanuel <email@hidden>
References: 
 >Re: Replacing a character/word (From: "Marc S.A. Glasgow" <email@hidden>)

  • Prev by Date: RE: Can't close doc in Quark
  • Next by Date: Change folder/file ownership
  • Previous by thread: Re: Replacing a character/word
  • Next by thread: Re: Replacing a character/word
  • Index(es):
    • Date
    • Thread