Change Character
Change Character
- Subject: Change Character
- From: Kim Hunter <email@hidden>
- Date: Sun, 05 Jun 2005 19:24:52 +1000
Title: Change Character
I want to remove the “:” from a string and replace them with for example either “-” or “ - “ which ever is easier.
This works great (in a new script of its own):
set str to "Zoom - How to get:set in Photoshop CS? MESSAGES"
set FinalSTR to RemoveColons(str)
on RemoveColons(Substring)
set NewString to do shell script "echo '" & Substring & "' | tr ':' '-'"
return NewString
end RemoveColons
But when I run it within my script it gives an error cannot continue RemoveColons
I don’t know.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden