> Usually when someone says "Foundation Tool", they mean that the app
> doesn't call NSApplicationMain, and possibly doesn't rely on having
> a connection to the window server.
>
> I don't think there should be anything that prevents you from using
> F-Script from that environment.
Just for posterity on the list: Ken appears to be correct. I now
have a single app which runs as a GUI Cocoa app if double-clicked, but
runs as a UI-less tool in Terminal if run from there (which it detects
using a command-line flag). To switch between these behaviors, I call
NSApplicationMain() in the GUI case, and do not in the non-GUI case.
My app links against AppKit either way, and that seems to present no
problems whatsoever. I haven't brought in F-Script yet, but given the
situation so far, I don't foresee any problems.
Thanks!
Ben Haller
Stick Software