Add Unix Executable to Mac OS X Dock

4

1

I can't drag Unix Executables to the dock like I can with other executables. Is there another way to put them there?

Casebash

Posted 2010-05-31T04:19:13.710

Reputation: 5 677

Answers

4

You can use Platypus http://www.sveinbjorn.org/platypus to build a MacOSX compatable program which calls a bash script/executable.

Nick

Posted 2010-05-31T04:19:13.710

Reputation: 560

1

Platypus will do the job fairly.

However, if you are not in the favour of installing any other software then you can also achieve the same using AppleScript:

Step 1: open Apple Script Editor from Spotlight search.

Step 2: write this command

to run
    do shell script "path_to_unix_executable"
end run

Step 3: Save it as an application bundle.

Step 4: Run

user3305074

Posted 2010-05-31T04:19:13.710

Reputation: 11

1

Platypus is nice. An alternative is to create an Applescript application with a do shell script command.

Here's the relevant apple technote: http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html

ghoppe

Posted 2010-05-31T04:19:13.710

Reputation: 6 124

and the AppleScript can be saved as an app by File-> Export in the AppleScript editor. The drag & drop the app on your dock. – Ioannis Filippidis – 2014-07-28T20:57:37.297