NSApplescript Issue
NSApplescript Issue
- Subject: NSApplescript Issue
- From: Mathew Peterson <email@hidden>
- Date: Fri, 8 Aug 2003 09:19:23 -0600
I have this code as below:
NSString *scriptText = @"set myFile to \":la.m4a\" as alias \n\
tell application \"iTunes\" \n\
add myFile to library playlist 1 \n\
end tell";
NSAppleScript *play= [[NSAppleScript alloc]
initWithSource:scriptText];
NSLog(@"%@", [[play executeAndReturnError:nil] stringValue]);
[play release];
It refuses to execute correctly even though if I run it in script
editor it runs fine. Is NSApplescript really picky or is it just my
code?
Thanks
Mat
_______________________________________________
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.