Re: Intel, Read/Write, and dates
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