Q:

Apple Script execute Unix executable

I'm currently pulling my hair out trying to make an apple script execute a shell script / Unix executable, so that I can drag it into the dock. I don't have much experience with AS, so this is propably an easy fix for many of you guys.
Here's the whole script:
to run
    do shell script "/Users/MyUserName/Documents/cmus/2.7.1_1/bin/cmus"
end run

Cmus is a terminal music program that is a Unix executable. 
When I try to run it, I get this error message:
error "Error opening terminal: unknown." number 1

What is the problem? Pls help...

A:

I am guessing your program is curses based and needs a Terminal window, so try this:
to run
   tell application "Terminal"
      do script "/Users/MyUserName/Documents/cmus/2.7.1_1/bin/cmus"
   end tell
end run

