• 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: 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.

  • Follow-Ups:
    • Re: System Date Format
      • From: Paul Berkowitz <email@hidden>
    • Re: System Date Format
      • From: Paul Berkowitz <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