Custom application launchers in Dock?
I have an X11 question (I hope this is the right place to post it...). Basically, although I the vast majority of the applications that I use have been ported to Mac OS X, I still have a few that run under X11. XMMS is one of them, and although I love the Mac system I have I can't bear to part with XMMS. But it's inconvenient to start up an xterm and run a command bringing up XMMS every time I want to run it. So what I want it a custom application launcher in my Dock, that can bring up XMMS just by clicking on the icon.
So this is where I have got so far: I found a program called Platypus that essentially does exactly what I need, in that it creates an icon that is linked to a script. So now I just need to find a script that can start XMMS, which should be no problem at all. Unfortunately, I can't figure out the script I need, and I'm totally stumped...
The problem is that I need to start X. So when I bring up a terminal, and run
/usr/X11R6/bin/startx
then go to the xterm that comes up and type
/sw/bin/xmms
everything works fine. Unfortunately, the script
#!/bin/sh
/usr/X11R6/bin/startx
/sw/bin/xmms
does not work in the same way... it seems that it starts X, but then it hangs, and doesn't run the next command in the xterm.
Is there a way to do this? To start X, and then run a command in the xterm, all within the same script (that I can then link to the icon)? If so, please let me know. I feel like I'm close to figuring this out, and it would really make running those X11 applications so much easier!
Thanks in advance for any help,
nanoo