[KLUG Members] Mac OS/X & Fink

Jason Edward Durrett jed at shackman.com
Mon Sep 27 22:38:27 EDT 2004


> Also what is the Mac OS/X kosher way of making X applications into 
> icons?
>

The way I do it is like this:

1. Make a shell script that opens the application.

$vi xterm.sh

#!bin/bash
/usr/X11R6/bin/xterm

Of course, using vi is not necessary . . . any editor will do.  Plus, 
you can use your favorite shell.

2.  Use chmod to make the script executable.

chmod +x xterm.sh

3.  Click on the new file -- You might have to choose an application to 
open it.  If so, choose X11.  I have all .sh files mapped to X11.

4.  Use some icon builder tool to give it a pretty icon.  I usually 
skip this step so I do not have any suggestions.

This method can also be used to execute various scripts (like a backup 
script) from the desktop.  I have been told you can do the same thing 
using AppleScript but, although it is graphically pleasing, I do not 
find it very elegant.

You can also use this method to do some interesting things like opening 
a X application on a remote server.  Pretty much it is up to your 
scripting abilities.

I do not know if this is the best practice but it works for me.  Let me 
know if this helps.

Jason








More information about the Members mailing list