[MacRuby-devel] Launch an app from the command line
Dave Baldwin
dave.baldwin at dsl.pipex.com
Sat Oct 16 11:46:36 PDT 2010
On 16 Oct 2010, at 19:04, corey johnson wrote:
> I'm trying to figure out how to launch a macruby app (with a cocoa UI)
> from the command line without relying on xcode or xcodebuild. The
> problem i'm running into is that the NSBundle.mainBundle is not being
> set when I run the app from the command line. I've tried using this:
>
> macruby -C. myApp.rb
>
> But that doesn't set the bundle to the current directory and I get this error:
>
> No Info.plist file in application bundle or no NSPrincipalClass in
> the Info.plist file, exiting
>
> Is it possible to run a macruby app from the command line? Should I be
> using macrubyc to do this?
>
Assuming you have a valid app then
open name.app
will run the the named app from the command line. e.g.
open mail.app
will run the mail app the same as double clicking on the icon.
Dave.
> Thanks,
> Corey
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
More information about the MacRuby-devel
mailing list