• 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
Rép: script versus Application Package.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rép: script versus Application Package.


  • Subject: Rép: script versus Application Package.
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 8 Oct 2009 18:12:36 +0200

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:
<http://idisk.me.com/koenigyvan-Public?view=web>

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



 _______________________________________________
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

  • Prev by Date: Setting PDF security options in Adobe Illustrator CS3 or CS4
  • Next by Date: Re: spurious timeout on nth Apple event on Snow Leopard
  • Previous by thread: Rép: script versus Application Package.
  • Next by thread: Re: spurious timeout on nth Apple event on Snow Leopard (was AS Timed Out Bug on Snow Leopard)
  • Index(es):
    • Date
    • Thread