>> I have been having problems calling my Cocoa app with Python scripts >> through the Scripting Bridge. To test further, I wrote the following >> Cocoa code to use the Scripting Bridge. For a large file (over 7000 >> elements in the SBElementArray recs variable) it runs smoothly until >> 77% completion and then stops. I thought it had crashed, but one time >> I waited and after a 2 minute pause, it starts up again and runs >> smoothly to 100% completion. >> >> So what is wrong with the Scripting Bridge in long scripts? I get >> these pauses in many scripts > > It sounds like you may have encountered the Snow Leopard Apple Event Bug: > > http://db.tidbits.com/article/10643 > > If so, there are two workarounds: (1) Use appscript, which has a built-in > workaround, or (2) update to 10.6.3 or later. m.
Yes, that is the solution. I was using 10.6.1. After updating my sample code and even much longer scripts that gave up well before finishing, they all run to completion without pauses. ------------ John Nairn http://www.geditcom.com Genealogy Software for the Mac _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com