• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Renaming a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Renaming a folder (From: Craig Walsh <email@hidden>)

  • Prev by Date: Re: Alternatives to Scriptable Text Editor
  • Next by Date: Re: Alternatives to Scriptable Text Editor
  • Previous by thread: Re: Renaming a folder
  • Next by thread: RE: Renaming a folder
  • Index(es):
    • Date
    • Thread