Mac OS X - run shell script from the desktop GUI

前端 未结 3 1258
有刺的猬
有刺的猬 2020-12-29 02:53

You can create a shell script or a Python or Ruby script and run it on the Mac by using \"Terminal\" ... if you have Finder open, and you click on the icon for the file cont

相关标签:
3条回答
  • 2020-12-29 03:33

    Yes - just put a .command suffix on the script.

    Note: make sure the script is executable, e.g.

    $ chmod +x myscript.command
    
    0 讨论(0)
  • 2020-12-29 03:39

    just associate .sh files with Terminal.app

    0 讨论(0)
  • 2020-12-29 03:44

    Just another quick alternative is the tool platypus (http://sveinbjorn.org/platypus/). Free and good, but you can donate, if you want.

    Platypus is a developer tool for the Mac OS X operating system. It creates native Mac OS X applications from interpreted scripts such as shell scripts or Perl, Ruby and Python programs. This is done by wrapping the script in an application bundle along with a native executable binary that runs the script.

    0 讨论(0)
提交回复
热议问题