Re: Getting file suffix
Re: Getting file suffix
- Subject: Re: Getting file suffix
- From: Shane Stanley <email@hidden>
- Date: Tue, 14 Sep 2010 08:22:12 +1000
- Thread-topic: Getting file suffix
On 14/9/10 8:04 AM, "Steve Thompson" <email@hidden> wrote:
> This is how I do it:
>
> if (this_item as string) contains "." then set the_extension to (characters
> ((offset of "." in (this_item as string)) + 1) thru -1 of (this_item as
> string)) as string
That fails if the name includes more than one period. It also uses a
coercion of a list to text, meaning it's prone to problems with changed text
item delimiters.
--
Shane Stanley <email@hidden>
_______________________________________________
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