JLinX – Blog

Weblog von Jan Linxweiler

OS X Run Shell Scripts From Finder

Filed under: Apple & Mac OS X,Linux — Jannis at 9:40 pm on Sunday, November 23, 2008
  1. Rename the shell script extension from .sh to .command
  2. Make the file executable: chmod +x file.command
  3. Wherever you put the file, it will run with your home directory as the current working directory. To get around this, use the following line:
    cd “`dirname “$0″`”

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.