• 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: vectormation <email@hidden>
  • Date: Mon, 8 Oct 2001 15:02:41 -0400

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
>_______________________________________________
>applescript-users mailing list
>email@hidden
>http://www.lists.apple.com/mailman/listinfo/applescript-users
>_______________________________________________
>applescript-users mailing list
>email@hidden
>http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Follow-Ups:
    • Re: Renaming a folder
      • From: Paul Skinner <email@hidden>
  • Prev by Date: Favorite Design Programs Productivity Scripts
  • Next by Date: Re: Watched folder actions
  • Previous by thread: RE: Renaming a folder
  • Next by thread: Re: Renaming a folder
  • Index(es):
    • Date
    • Thread