• 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
New Folder with date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New Folder with date


  • Subject: New Folder with date
  • From: Stephen Wheeler (Saito) <email@hidden>
  • Date: Thu, 5 Apr 2001 23:31:11 +0900

Hello,

I have this script which makes a folder with today's date,

tell application "Finder"
set aDate to current date -- today's date
set yy to year of aDate
set mm to month of aDate
set dd to day of aDate
set myFile to (yy & "/" & mm & "/" & dd) as text -- file name
make new folder with properties {name:myFile}
end tell


But I want to return the month as a number and not a name. Is there any other way of doing this with out added this,

if mm is "January" then
set mm to 01
else if mm is "February" then
blah blah blah..
end if

Also the next thing I want to do with this script is to copy a folder named "db"into this newly made dated folder.

Thanks

Stephen Saito
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Awaji Island, Japan


  • Follow-Ups:
    • Re: New Folder with date
      • From: Sander Tekelenburg <email@hidden>
    • Re: New Folder with date
      • From: Emmanuel <email@hidden>
  • Prev by Date: Scripting Toast 3.5.7
  • Next by Date: global declarations for many variables: is there a better way?
  • Previous by thread: Re: Scripting Toast 3.5.7
  • Next by thread: Re: New Folder with date
  • Index(es):
    • Date
    • Thread