• 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
Intel, Read/Write, and dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Intel, Read/Write, and dates


  • Subject: Intel, Read/Write, and dates
  • From: "Nigel Garvey" <email@hidden>
  • Date: Sun, 14 Oct 2007 12:41:42 +0100

The script below should write the current date to a file on the desktop
and read it back again. Someone on bbs.applescript.net says that the date
returned on their Intel machine is 1st January 1904 00:00:00. Could
anyone here with an Intel machine confirm this bug for me?  Many thanks.

  set filePath to (path to desktop as Unicode text) & "Test.dat"
  set fRef to (open for access file filePath with write permission)
  try
    set eof fRef to 0
    write (current date) as date to fRef
  end try
  close access fRef

  read file filePath as date


NG

 _______________________________________________
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

  • Follow-Ups:
    • Re: Intel, Read/Write, and dates
      • From: Martin Orpen <email@hidden>
    • Re: Intel, Read/Write, and dates
      • From: Axel Luttgens <email@hidden>
    • Re: Intel, Read/Write, and dates
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Creating unique numerical representation of file path?
  • Next by Date: Re: Intel, Read/Write, and dates
  • Previous by thread: Skype (was: VoIP Client Scriptable)
  • Next by thread: Re: Intel, Read/Write, and dates
  • Index(es):
    • Date
    • Thread