• 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: Create a folder with today's date as the folder name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create a folder with today's date as the folder name


  • Subject: Re: Create a folder with today's date as the folder name
  • From: Applescript User Lewis <email@hidden>
  • Date: Sat, 9 Feb 2002 22:28:31 -0700

At 15:57 +0000 09/02/02, email@hidden wrote:
Dear list

Can somebody please help me with this small script step

I have a script that zips files to a folder, which works well.

I now need to archive the backups some how and would like a script that
1) creates a new folder with today's date as the folder name


tell application "Finder" to set the NewFolder to (make new folder at the home with properties {name:(current date) as text})

That's a single line. Of course, the format of the date may not be what you want. This created a folder named "09 February, 2002 22/07/24" where the last part is the timestamp with the :'s substituted, automatically, to /'s. I would use:

tell application "Finder" to set the NewFolder to (make new folder at the home with properties {name:(((year of (current date)) as text) & " " & (month of (current date)) as text) & " " & ((day of (current date)) as text)})

But I like the long month format, in general.

One of the failings, in my mind, of AppleScript is it's convoluted and rather annoying handling of the month, especially if you want the numerical month.

--
___________________________________________________________________________
| applescript@ & "southgaylord.com"| Unix is very user friendly. It's just |
| I frankly do not believe Micro- | picky about who its friends are. |
| soft has the user's interests at | I want a party where all the women wear|
| heart, or even in mind. | new dresses and the men all drink beer.|
---------------------------------------------------------------------------
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Create a folder with today's date as the folder name (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Ethernet Hardware Address
  • Next by Date: copying over an appletalk network
  • Previous by thread: Re: Create a folder with today's date as the folder name
  • Next by thread: Re: Create a folder with today's date as the folder name
  • Index(es):
    • Date
    • Thread