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

Re: Intel, Read/Write, and dates


  • Subject: Re: Intel, Read/Write, and dates
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 14 Oct 2007 14:38:41 +0200

On 14/10/07 13:41, Nigel Garvey wrote:

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



As for Michelle, confirmed here too.
Now, the bug seems to happen while reading; the data written to the file seems to be identical to the one written by a PPC machine.


Axel
_______________________________________________
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: Michelle Steiner <email@hidden>
References: 
 >Intel, Read/Write, and dates (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: Intel, Read/Write, and dates
  • Next by Date: Re: Intel, Read/Write, and dates
  • Previous by thread: Re: Intel, Read/Write, and dates
  • Next by thread: Re: Intel, Read/Write, and dates
  • Index(es):
    • Date
    • Thread