Re: System Date Format
Re: System Date Format
- Subject: Re: System Date Format
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 03 Sep 2003 21:02:41 -0700
AHA! Thank you, Bill, I'm off to investigate and parse.
Many thanks.
--
Paul Berkowitz
From: bill <email@hidden>
Date: Thu, 04 Sep 2003 11:56:47 +0800
To: <email@hidden>
Cc: <email@hidden>
Subject: Re: System Date Format
>
Does anyone know a shell script for getting the system short date and system
time formats as set in System Preferences?
Paul,
the info is in the file ~/Library/Preferences/.GlobalPreferences.plist
You might try these:
-- system long date format
do shell script "defaults read -g NSDateFormatString"
-- "%A, %d %B %Y"
-- system short date format
do shell script "defaults read -g NSShortDateFormatString"
-- "%Y-%m-%d"
-- system time format
do shell script "defaults read -g NSTimeFormatString"
-- "%H:%M:%S"
Or, the whole content of this plist file
do shell script "defaults read -g"
bill
_______________________________________________
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.