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 (Cocoa-dev@lists.apple.com)
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/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]