Target
Run a command line tool or script displayed with a specific icon in dock. A terminal window should not be displayed. I would like to use this to start octave with its gui.
What I tried
- Automator
- Create an automator application and running a shell script.
- Change its icon using finders file information window
- I now have an individual application icon
- Result: After start, automator calls terminal and terminal icon appears in dock hosting my command line tool. My indiviual icon is not showing up in dock while running.
- Shell script
- Create a shell script
myapp.sh
starting my command line tool. - Make executable with
chmod u+x myapp.sh
- Can not change icon at all using finders information window.
- Result: When clicking a terminal window is opened.
- Create a shell script
Possible solutions
- Use a command line tool to change the icon of the currently running process?
- Start terminal with a specific icon?
- ...?