Re: Renaming a folder
Re: Renaming a folder
- Subject: Re: Renaming a folder
- From: "Marc K. Myers" <email@hidden>
- Date: Mon, 08 Oct 2001 18:57:36 -0400
- Organization: [very little]
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....
I like this approach, using Akua Sweets:
the clock using form "%c%y/%m/%d/%h/%i/%s"
-->"2001/10/08/18/54/16" (year/month/day/hour/minute/second)
It sorts properly!
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[10/8/01 6:57:15 PM]