Re: file path problem
Re: file path problem
- Subject: Re: file path problem
- From: Christopher Stone <email@hidden>
- Date: Thu, 30 Jun 2011 18:26:27 -0500
Hey Jean-Christophe,
AppleScript's text item delimiters are useful and very fast, but I generally prefer to use the Satimage.osax for find/replace. It too is very fast, more versatile, and I don't have to fool with resetting TIDs.
At the simplest level:
set fileName to "Re: file path problem" set fileName to change ":" into ";" in fileName
Using a list:
set fileName to "Re: file path problem!" set fileName to change {":", "!"} into {";", "?"} in fileName
Jumping up to regular expressions:
set fileName to change "[:!]" into "" in fileName with regexp without case sensitive
-- Best Regards, Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden