Le 7 oct. 2009 à 21:57, Yvan KOENIG a écrit :
Le 7 oct. 2009 à 21:47, Yvan KOENIG a écrit :
Hello
I wrote an AppleScript allowing me to repair corrupted AppleWorks 6 files.
When I run the XX.scpt file, it behaves flawlessly.
When I run the same as an Application Package (10.4.11) the beast quits.
I really don't understand why.
If someone is interested, the crash report is available on my iDisk:
Download:
crashReport2009-10-07 21-49-05.429.txt.zip
I got it.
The script must scan the content of the corrupted file.
It was reading it in a whole.
Whe run from the Script Editor all is OK but when saved as a Package, it fis with large files.
I guess that there is a size limit defined when compiling the app.
So, I modified the process. Now the file is read by chunks of $3000 bytes and all behave well.
It's a bit slower but it's not really annoying.
As it seems that an AppleWorks file may reach the size $FFFFFF I feel that its an efficient workaround.
I was able to revive a 15000 records database ;-)
Yvan KOENIG (VALLAURIS, France) jeudi 8 octobre 2009 18:02:20