Re: System Date Format
Re: System Date Format
- Subject: Re: System Date Format
- From: bill <email@hidden>
- Date: Thu, 04 Sep 2003 11:56:47 +0800
>
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
[demime 0.98b removed an attachment of type application/octet-stream which had a name of SIA(MKT) shift patt#197DA2.scpt"; x-mac-creator="546F7953"; x-mac-type="6F736173]
_______________________________________________
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.