New Folder with date
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