• 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: A few questions about dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A few questions about dates


  • Subject: Re: A few questions about dates
  • From: Philip Aker <email@hidden>
  • Date: Tue, 29 Aug 2006 17:28:06 -0700

On 2006-08-29, at 16:55:51, Nigel Garvey wrote:

Another method, which doesn't require a hack, is:

  on date_as_seconds(d)
    set fRef to (open for access file ((path to temporary items as
Unicode text) & "date.dat") with write permission)
    try
      set eof fRef to 0
      write d to fRef
      set s to (read fRef from 1 as double integer)
    end try
    close access fRef

    return s
  end date_as_seconds

date_as_seconds(current date)

do shell script "echo 'puts [clock seconds]' | tclsh"

Philip Aker
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: This email sent to email@hidden
References: 
 >Re: A few questions about dates (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: A few questions about dates
  • Next by Date: Invoke Exposé via an Applescript
  • Previous by thread: Re: A few questions about dates
  • Next by thread: Re: A few questions about dates
  • Index(es):
    • Date
    • Thread