Re: Days and hours
Re: Days and hours
- Subject: Re: Days and hours
- From: Shane Stanley <email@hidden>
- Date: Thu, 20 Oct 2005 14:58:26 +1000
- Thread-topic: Days and hours
On 20/10/05 2:29 PM, "Mark J. Reed" <email@hidden> wrote:
> Other solutions:
>
> 1. Instead of running the PHP interpreter, just run the special commands
> basename or dirname, which have a much smaller footprint and run faster:
>
> set someFile to (choose file)
> set fullPath to POSIX path of someFile
> set basename to do shell script "basename " & quoted form of fullPath
> set dirname to do shell script "dirname " & quoted form of fullPath
I liked your Finder solution better, or even using text item delimiters.
That way you get correct results if you path contains slashes.
--
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:
This email sent to email@hidden