• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: System Date Format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: System Date Format (From: bill <email@hidden>)

  • Prev by Date: Re: System Date Format
  • Next by Date: Re: System Date Format
  • Previous by thread: Re: System Date Format
  • Next by thread: Re: System Date Format
  • Index(es):
    • Date
    • Thread