NSAppleScript question
NSAppleScript question
- Subject: NSAppleScript question
- From: Matthew Weinstein <email@hidden>
- Date: Thu, 24 Jul 2003 08:44:09 -0400
Ok, I'm doing something wrong.
The following works as expected:
NSMutableString *as = [[NSMutableString alloc] init];
NSAppleScript *aa;
NSDictionary *errorInfo=0;
[as setString: @"say \"Hello world\""];
aa = [[NSAppleScript alloc] initWithSource: as];
if(![aa executeAndReturnError: &errorInfo])
[aa release];
But the following never succeeds:
NSMutableString *as = [[NSMutableString alloc] init];
NSAppleScript *aa;
NSDictionary *errorInfo=0;
[as setString: @"say \"Hello world\" saving to \"test.aiff\""];
aa = [[NSAppleScript alloc] initWithSource: as];
if(![aa executeAndReturnError: &errorInfo])
[aa release];
What am I doing wrong here? Am I missing something?
1000 thanks, Matthew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.