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