Re: read as date bug in 10.5
Re: read as date bug in 10.5
- Subject: Re: read as date bug in 10.5
- From: Philip Aker <email@hidden>
- Date: Sat, 29 Mar 2008 18:48:34 -0700
On 08-03-29, at 16:15, Paul Berkowitz wrote: OK, I finally upgraded to Leopard OS 10.5 on an Intel iMac.
I have now encountered the 'read as date' bug discussed here. Particularly as I have a few shareware scripts that write dates to text files to determine when to synchronize two applications (Entourage with iCal and Address Book).
I discovered an entertaining curiosity…
Hard to tell if you need a solution. If it's for previously written dates, I don't know. If it's for dates writ and read (everyone should be using 10.5.2) one solution is to wrap it in a list.
set d to (current date) set p to ((path to desktop as text) & "datewreck") set t to true if (t is true) then try set f to open for access p with write permission set eof of f to 0 write (d as list) to f close access f on error errs try close access f end try return errs end try else try set f to p as alias set s to read f as list item 1 of s end try end if
Philip Aker |
_______________________________________________
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