Re: Renaming a folder
Re: Renaming a folder
- Subject: Re: Renaming a folder
- From: Paul Skinner <email@hidden>
- Date: Mon, 08 Oct 2001 15:49:08 -0400
on 10/8/01 3:02 PM, vectormation wrote:
>
That will still be too long... under pre -X OS's anyway :
>
"Monday, October 8, 2001 03:05:02 PM"
>
>
A second problem would be the colons (":") - illegal in Mac file paths...
>
>
You will want to do something like the following :
>
>
set temp to current date
>
>
set myStr to ((year of temp) as string) & [continuation]
>
" " & ((month of temp) as string) & [continuation]
>
" " & ((day of temp) as string)
>
>
~Phi
>
>
> What about trying (current date) as string ??
>
> - Zav
>
> Aspiring newbie.
>
>
>
> -----Original Message-----
>
> From: Craig Walsh [mailto:email@hidden]
>
> Sent: Thursday, October 04, 2001 9:05 PM
>
> To: email@hidden
>
> Subject: Renaming a folder
>
>
>
>
>
> Hi All,
>
> I was just wondering if anyone knows how to rename a folder to
>
> the current date of the machine.
>
>
>
> I try (current date) and it simply returns cannot put that data into the
>
> expected type!!!
>
>
>
> Any help would be greatly appreciated....
>
>
>
> Cheers
>
> craig
date string of (current date)
-->"Monday, October 8, 2001"
Simple answer. Full answer is much longer. Ask the list if you want it.
--
Paul Skinner