Re: Current date notation
Re: Current date notation
- Subject: Re: Current date notation
- From: Dennis Wurster <email@hidden>
- Date: Fri, 11 May 2001 09:52:27 -0400
>
But instead of calling the current date osax 3 times you could set it to a
>
variable and just call it that once.
>
>
--
>
Paul Berkowitz
Okay, here's a revision. A little less readable me (I'm a total newbie),
but two fewer calls to the current date function.
For the record, Apple's applescript website has a far more flexible
solution in it's 'current date OSAX' help center module.
http://www.apple.com/applescript/help_mods.html
-----
set {m, d, y} to {month, day, year} of (current date)
set monthList to {January, February, March, April, May, June, July,
August, September, October, November, December}
repeat with i from 1 to 12
if m = (item i of monthList) then
set monthString to text -2 thru -1 of ("0" & i)
exit repeat
end if
end repeat
set dayString to text -2 thru -1 of ("0" & d)
set resultString to dayString & "-" & monthString & "-" & y
-------
-=Dennis=-
------------------------
Dennis Wurster
Senior IT Specialist
Infantino Associates