Re: Replacing a character/word
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.