making \ a delimiter

Hi,

I want to take this string
00:00:00:00
and turn it into this string
00:00:00:00

I have tried to use applescript delimiters to get it done but applescript keeps seeing the \ character and thinking I want to escape the next character in my script so I can’t seem to change the applescript delimiter from : to :

Could someone suggest the right way to go about this?
Thanks in advance
L

Hi.

Escape the escape character. :slight_smile:

set applescript's text item delimiters to "\\:"

Thanks for your quick response!

but when I try that I get…

00\:00\:00\:00

here is how I am going about it

try
	set TC_a to "00:00:00:00"
	set AppleScript's text item delimiters to ":"
	set TC_a_items to text items of TC_a
	set AppleScript's text item delimiters to "\\:"
	set tc_b to TC_a_items as string
	
on error
	set AppleScript's text item delimiters to ""
end try

thanks again

That’s what you’re seeing in Script Editor. But the string itself only contains single backslashes. Try adding this to the end of your script:

display dialog tc_b

well bugger me
true
once again, you guys rock