• 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: AppleScript - occasional crashes on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript - occasional crashes on Leopard


  • Subject: Re: AppleScript - occasional crashes on Leopard
  • From: Bill Cheeseman <email@hidden>
  • Date: Tue, 22 Apr 2008 15:19:02 -0400
  • Thread-topic: AppleScript - occasional crashes on Leopard

on 2008-04-22 2:31 PM, Steve Cronin at email@hidden wrote:

> NO threading involved here.
> Just straight up Cocoa code...

Bear in mind that running a script via NSAppleScript (or the corresponding
method in OSAKit) on a machine that has Unsanity's Application Enhancer
(APE) installed automatically causes the script to be run in a secondary
thread. At least, this was true a couple of years ago when I first
encountered the problem.

I ran into this problem with APE in one of my own applications that uses
NSAppleScript to run a script. I worked closely with Unsanity at that time
to figure out how to deal with the problem. As a result, I now always force
my scripts to run on the main thread by calling -performOnMainThread (I
forget exactly what the method is called). This seems to work around the
problem on machines that have APE installed.

Unfortunately, it is difficult to support customers/users running APE. Folks
with haxies installed rarely know that they should mention it when they
submit problem reports. I've gotten in the habit of asking that question up
front in response to almost all support calls.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com


_______________________________________________

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

References: 
 >Re: AppleScript - occasional crashes on Leopard (From: Steve Cronin <email@hidden>)

  • Prev by Date: Re: AppleScript - occasional crashes on Leopard
  • Next by Date: Re: [Ann] DMG Canvas
  • Previous by thread: Re: AppleScript - occasional crashes on Leopard
  • Next by thread: Re: AppleScript - occasional crashes on Leopard
  • Index(es):
    • Date
    • Thread