5

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

3 Answers 3

4

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

1
  • Looks like this program can't be run on M2 Macbook Pro Commented Sep 18, 2023 at 14:54
2

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

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

1
  • and the AppleScript can be saved as an app by File-> Export in the AppleScript editor. The drag & drop the app on your dock.
    – 0 _
    Commented Jul 28, 2014 at 20:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .