Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the operator's short date under Panther.



Hello,

I've been using the following code to happily get the logged-in operator's NSShortDateFormatString under Jaguar:

set the_result to contents of default entry "NSShortDateFormatString" of user defaults

Under Panther, no matter what the operator's date is set to, this returns the same value. Under Jaguar, things worked as expected. If the operator changed their short date format, it was reflected and updated in this value.

I've noticed that AppleICUDateFormatStrings in the NSGlobalDomain returns an array of values that reflect a changed date format, though the array is formatted quite oddly and will require a bunch of additional parsing to get a manipulable 'short date' string from it. Has the NSShortDateFormatString been depreciated in favor of AppleICUDateFormatStrings?

Under Panther, what's the best way that ASS folks are using to reliably get an operator's short date format? The AppleICUDateFormatStrings array seems quite unworkable from someone who's been getting access to the very useful NSShortDateFormatString for some time now.

If anyone is having good success getting a correct, workable short date format string under Panther, if you could share your code I'd be most grateful.

Best,

Steve Elliott
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Key codes for function keys (From: Bill Cheeseman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.