Re: System Date Format
Re: System Date Format
- Subject: Re: System Date Format
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 03 Sep 2003 21:01:41 -0700
On 9/3/03 8:51 PM, "John Baltutis" <email@hidden> wrote:
>
On 9/3/03, Paul Berkowitz <email@hidden> wrote:
>
>
>
> Does anyone know a shell script for getting the system short date and system
>
> time formats as set in System Preferences?
>
>
>
> There must be a way. There are apps which can access these from the system
>
> somehow.
>
>
>
>
Try these:
>
>
set _date to (do shell script "date +%m/%d/%y;:")
>
set _time to (do shell script "date +%H:%M:%S;:")
>
{_date, _time}
What are you talking about John? Of course I can do that. I want a way to
get the date format on any user's machine. I have no idea if the user has
"%m/%d/%y" or "%Y-%m-%d" or whatever.
In OS 9, Akua Sweets could get the system format, precisely. I'm sure
there's a way in OS X, and you'd think there would be a shell script which
could do it, but I've not been able to find one.
--
Paul Berkowitz
_______________________________________________
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.