• 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: read as date bug in 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
echo email@hidden@nl | tr a-z@. p-za-o.@

 _______________________________________________
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: read as date bug in 10.5
      • From: Paul Berkowitz <email@hidden>
References: 
 >read as date bug in 10.5 (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: read as date bug in 10.5
  • Next by Date: Re: read as date bug in 10.5
  • Previous by thread: read as date bug in 10.5
  • Next by thread: Re: read as date bug in 10.5
  • Index(es):
    • Date
    • Thread