NSDictionary *directParameter =[NSDictionary dictionaryWithObjectsAndKeys:
@"NSString", @"Type",
@"----", @"AppleEventCode", nil];
NSDictionary *myCommandArguments = [NSDictionary dictionaryWithObjectsAndKeys:
directParameter, @"", nil];
NSDictionary *myCommandDictionary = [NSDictionary dictionaryWithObjectsAndKeys:
@"MyCommandClass", @"CommandClass",
@"foo ", @"AppleEventCode",
@"bar ", @"AppleEventClassCode",
@"NSArray class]", @"Type",
@"list", @"ResultAppleEventCode",
myCommandArguments, @"Arguments",nil];
NSScriptCommandDescription *myCommand = [[[NSScriptCommandDescription alloc] initWithSuiteName:@"My Suite"
commandName:@"foobar"
dictionary:myCommandDictionary] autorelease];
When I log myCommand to console, I get:
Command: foobar ('bar '/'foo ')
Implementation class: MyCommandClass
Name: <none>, description: <none>
Unnamed argument ('----'), type: (null) (''), optional: no
(No user-readable name or description needed for unnamed arguments)
Result type: NSArray ('null')
Description: <none>
Am I doing something wrong here?
Thanks.
- Kunal
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden