Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.