• 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: Scripting Bridge Strange Pauses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Bridge Strange Pauses


  • Subject: Re: Scripting Bridge Strange Pauses
  • From: Matt Neuburg <email@hidden>
  • Date: Fri, 17 Sep 2010 08:35:45 -0700
  • Thread-topic: Scripting Bridge Strange Pauses

On Wed, 15 Sep 2010 22:50:08 -0700, John Nairn <email@hidden> said:
>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.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Scripting Bridge Strange Pauses
      • From: John Nairn <email@hidden>
  • Prev by Date: Re: sort an nstablecolumn to button cell state?
  • Next by Date: Re: Scripting Bridge Strange Pauses
  • Previous by thread: Re: Scripting Bridge Strange Pauses
  • Next by thread: Re: Scripting Bridge Strange Pauses
  • Index(es):
    • Date
    • Thread