• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSApplescript weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: String Encoding Detection (Revisited)
  • Next by Date: some nib connections not surviving nib load
  • Previous by thread: Re: Pattern recognition
  • Next by thread: Re: NSApplescript weirdness
  • Index(es):
    • Date
    • Thread