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