• 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: ISO time "class"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: ISO time "class" (From: Bill Cheeseman <email@hidden>)
 >Re: ISO time "class" (From: has <email@hidden>)

  • Prev by Date: Re: scripting in Safari
  • Next by Date: Re: scripting in Safari
  • Previous by thread: Re: ISO time "class"
  • Next by thread: Excel 2004
  • Index(es):
    • Date
    • Thread