Re: Set Current date to new folder
Re: Set Current date to new folder
- Subject: Re: Set Current date to new folder
- From: "John B. Stewart" <email@hidden>
- Date: Mon, 15 Jan 2001 06:02:31 -0500
At 11:34 PM -0500 1/14/01, Joe Calabria wrote:
>
Newbe question...
>
>
I want to create a new folder and name it the current date in the following
>
format: 1/15/01
>
>
I need to fill in the ???????:
>
>
tell application "Finder"
>
activate
>
make new folder at desktop
>
select folder "untitled folder"
>
set name of selection to ???????
>
end tell
>
>
thanks -
>
jc
>
This example uses the Date Format Scripting Addition from Runtime Labs Inc.
<
http://www.rtlabs.com>
tell application "Finder"
activate
make new folder at desktop
select result
set theDate to format date (current date) with format "%m/%d/%y"
set name of selection to theDate
end tell
There are other scripting additions that can easily do it and it can also be done a lot of plain vanilla AppleScript.