Re: RegExps in AS
Re: RegExps in AS
- Subject: Re: RegExps in AS
- From: Andrew Oliver <email@hidden>
- Date: Sun, 20 Feb 2005 13:29:45 -0800
On 2/20/05 10:53 AM, "Christopher Stone" <email@hidden> wrote:
> if character -4 of fName = "." then
Great!
Oops, hang on, I'm not using DOS 1.0, I'm dealing with .html files so that
doesn't work, but it'll work for all other files, except for my .jpeg
images, and my .qt QuickTime movies, and... and ...
Your only real options here are Text Item Delimiters (text items 1 through
-2 of the name when TIDs are '.'), or asking the Finder for the filename
extension (a proerty of a file) and stripping that.
Personally I'd use the latter approach since you're probably using the
Finder to change the file names anyway.
Andrew
:)
_______________________________________________
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