FROM : Michael Watson
DATE : Tue Apr 22 21:01:37 2008
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];
DATE : Tue Apr 22 21:01:37 2008
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];
| Related mails | Author | Date |
|---|---|---|
| Steve Cronin | Apr 22, 19:47 | |
| Nick Zitzmann | Apr 22, 20:10 | |
| Steve Cronin | Apr 22, 20:31 | |
| Michael Watson | Apr 22, 20:31 | |
| Michael Watson | Apr 22, 21:01 | |
| Bill Cheeseman | Apr 22, 21:19 | |
| Mark Piccirelli | Apr 22, 21:53 | |
| Michael Watson | Apr 22, 22:01 | |
| Mark Piccirelli | Apr 22, 22:16 | |
| Steve Cronin | Apr 22, 22:17 |






Cocoa mail archive

