Re: System Date Format
Re: System Date Format
- Subject: Re: System Date Format
- From: Krister Nyman <email@hidden>
- Date: Fri, 12 Sep 2003 16:50:15 +0200
Hi Try This One !
MacOS 9
________________
tell application "Finder"
activate
set the_months to "January February March April May June July August
September October November December"
set message_date to current date
set mess_year to year of message_date as string
set mess_day to day of message_date as string
set day_count to count characters in mess_day
if day_count = 1 then set mess_day to "0" & mess_day
set mess_month to month of message_date as string
repeat with x from 1 to count words in the_months
if mess_month = word x of the_months then
set month_count to x as string
exit repeat
end if
end repeat
if x is less than 10 then set month_count to "0" & month_count
set date_format to mess_year & "/" & month_count & "/" & mess_day & "-" & time string of
(current date)
end tell
__________________
Best Regards
Krister Nyman
Paul Berkowitz wrote:
>
Does anyone know a shell script for getting the system short date and system
>
time formats as set in System Preferences?
>
>
There must be a way. There are apps which can access these from the system
>
somehow.
>
>
--
>
Paul Berkowitz
>
_______________________________________________
>
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.
_______________________________________________
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.