• 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 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


References: 
 >RE: Renaming a folder (From: vectormation <email@hidden>)

  • Prev by Date: Re: Project Builder & AppleScript
  • Next by Date: Results of Offset handler speed tests
  • Previous by thread: RE: Renaming a folder
  • Next by thread: RE: Renaming a folder
  • Index(es):
    • Date
    • Thread