I know you can do this in one command (ok maybe not one, but just a couple) by the setting the delimiter, but I’ve been working too hard and can’t remember how to do it. Already did a search.
I want to delete all double quote marks out of my string. "
set AC_raw to my supprime(the clipboard as text, quote)
--=====
(*
removes every occurences of d in text t
*)
on supprime(t, d)
local oTIDs, l
set oTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
set t to l as text
set AppleScript's text item delimiters to oTIDs
return t
end supprime
--=====
Yvan KOENIG (VALLAURIS, France) mercredi 19 octobre 2011 09:32:36