• 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: Mac dates ==> UNIX dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac dates ==> UNIX dates


  • Subject: Re: Mac dates ==> UNIX dates
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sat, 21 Oct 2006 10:37:05 -0400

you left off the "& r", Yvan.  You just did

do shell script "date -r"

which will always yield that error message.


On 10/21/06, Yvan KOENIG <email@hidden> wrote:


Le 21 oct. 2006 à 13:34, Philip Aker a écrit :


set d to (current date) as string

set r to (do shell script "echo 'puts [clock scan {" & d & "}]' | tclsh")

do shell script "date -r " & r

For your information, on my french system I got this log report:

tell current application
 current date
 date "samedi 21 octobre 2006 13:43:26"
 do shell script "echo 'puts [clock scan {samedi 21 octobre 2006 13:43:26}]'
| tclsh"
 ""
 do shell script "date -r "
 "date: option requires an argument -- r
usage: date [-nu] [-r seconds] [+format]
       date [[[[[cc]yy]mm]dd]hh]mm[.ss]"


Yvan KOENIG _______________________________________________ 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/mailman//archives/applescript-users

This email sent to email@hidden




--
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/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Mac dates ==> UNIX dates (From: Marc Myers <email@hidden>)
 >Re: Mac dates ==> UNIX dates (From: Philip Aker <email@hidden>)
 >Re: Mac dates ==> UNIX dates (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Date trouble
  • Next by Date: Re: Mac dates ==> UNIX dates
  • Previous by thread: Re: Mac dates ==> UNIX dates
  • Next by thread: Re: Mac dates ==> UNIX dates
  • Index(es):
    • Date
    • Thread