Re: ISO time "class"
Re: ISO time "class"
- Subject: Re: ISO time "class"
- From: "Mark J. Reed" <email@hidden>
- Date: Sun, 23 Dec 2007 21:12:36 -0500
On Dec 23, 2007 8:50 PM, Doug McNutt <
email@hidden> wrote:
I find this useful for creating time strings that work for RFC2822 email. It's likely that the underlying UNIX/POSIX libraries are something like a standard that is widely accepted.
That's a little redundant. POSIX is itself not only "something like a standard" but an actual standard. :)
osascript <<ENDSCRIPT
set rightnow to do shell script "date \\"+%a, %d %b %Y %H:%M:%S %z\\""
rightnow
ENDSCRIPT
That's an odd way to give the example, since one would be unlikely to use osascript to run AppleScript to use do shell script to run a shell command. If you can run osascript, you can run date directly.
From the AS side, though, you can avoid some backslashitis by just using single quotes for the quoted shell string within the AS string:
do shell script " date +'%a, %d %b %Y %H:%M:%S %z' "
--
Mark J. Reed <
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden