Re: Renaming a folder
Re: Renaming a folder
- Subject: Re: Renaming a folder
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 04 Oct 2001 23:22:42 -0700
On 10/4/01 10:48 PM, "Craig Walsh" <email@hidden> wrote:
>
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....
>
You shouldn't be so amazed: (current date) gives you the date data type,
whereas folder names require string data type. You can get the long-winded
verbose version "Thursday, October 6, 2001" via
date string of (current date)
and add the time, if desired, by
& " " & time string of (current date)
(or of a variable set to current date)
If you want the short version, you can use one of many such routines
available - Emmanuel Levy's, adapted if necessary, is best. Ask again if you
need it.
Or you can get the precise version in your own and any other user's Date &
Time control panel via Akua Sweets'
the clock from (current date) using system form "%d"
or "%d % t"
to include time. Or there are ways (not quite so good) via Tanaka's osax
too.
--
Paul Berkowitz