NSApplescript weirdness
NSApplescript weirdness
- Subject: NSApplescript weirdness
- From: Chris Backas <email@hidden>
- Date: Thu, 07 Aug 2003 20:43:08 -0700
Hello all,
I'm experimenting a bit with the NSAppleScript class in Java, and I'm not getting very far. For whatever reason, the bridged version only allows construction from a String and not a compiled file path; I can deal with that, but I'm getting errors I don't understand trying to do even that much. When I try to .compile() the NSAppleScript instance, I get this back from the errorInfo dictionary:
Error Message: Expected end of line, etc. but found unknown token.
Error Code: -2741
Error Description: Expected end of line, etc. but found unknown token.
Error Range: {785, 1}
The Applescript I'm trying is very simple, it runs just fine in Script Editor, and if I run it directly out of the text file from the command line it's fine as well. IE:
osascript <My Script File>
So, what's the deal? Is NSAppleScript completely broken, or is it only on the Java side? Any ideas?
Thanks,
Chris Backas
_______________________________________________
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.