Re: Getting filename without extension...
Re: Getting filename without extension...
- Subject: Re: Getting filename without extension...
- From: kai <email@hidden>
- Date: Thu, 5 May 2005 10:50:33 +0100
On Thursday, May 5, 2005, at 05:03 am, Michelle Steiner wrote:
On May 4, 2005, at 6:48 PM, Malcolm Fitzgerald wrote:
StripSuffix("word.doc.pdf")
to StripSuffix(x)
set my text item delimiters to "."
return reverse of (rest of (reverse of (text items of x))) as
string
end StripSuffix
That fails if there is no file extension.
to StripSuffix(x)
set text item delimiters to "."
tell (count x's text items) to x's text 1 thru text item (it - 1 mod
it)
end StripSuffix
(Whaddya mean - "restore TIDs"?) ;-)
---
kai
_______________________________________________
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