Please help me DELETE SPACES in text
Can I automatically delete these many thousand spaces - apart from individually for each space ?
Thanks,
Bramble24
iMac, Mac OS X (10.6.6), 2.8 GHz Intel Core 2 Duo
iMac, Mac OS X (10.6.6), 2.8 GHz Intel Core 2 Duo
--=====
on run
set en_texte to the clipboard as text
--set en_texte to my supprime(en_texte,ASCII character(0))
set the clipboard to en_texte
end run
--=====
(*
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
--=====
--
--=====
on run
set the clipboard to the clipboard as text
end run
--=====
--
--=====
on run
set en_texte to the clipboard as text
set en_texte to my supprime(en_texte,ASCII character(0))
set the clipboard to en_texte
end run
--=====
(*
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
--=====
--
Please help me DELETE SPACES in text