Re: AppleScript - occasional crashes on Leopard
Re: AppleScript - occasional crashes on Leopard
- Subject: Re: AppleScript - occasional crashes on Leopard
- From: Michael Watson <email@hidden>
- Date: Tue, 22 Apr 2008 15:01:37 -0400
For reference, you're not supposed to pass a pointer to a valid
NSDictionary object in -executeAndReturnError:, you're supposed to
pass a pointer to an NSDictionary pointer variable. On return, if
there were errors encountered, errorDict will be a valid NSDictionary
object.
--
m-s
On 22 Apr, 2008, at 13:47, Steve Cronin wrote:
NSString *theScript =@"some valid dynamic script text"
NSDictionary *errorDict = [NSDictionary dictionary];
NSAppleScript *appleScriptObject = [[NSAppleScript alloc]
initWithSource:theScript];
NSAppleEventDescriptor *eventDescriptor = [appleScriptObject
executeAndReturnError: &errorDict];
_______________________________________________
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