From Newsgroup: comp.sys.mac.system
In article <l6E_f.15895$
yy4.13958@tornado.texas.rr.com>,
Gary Morrison <
mr88cet@texas.net> wrote:
Is there a way to make shell-script files (meaning Unix shells: sh,
csh, ksh, etc.) executable by double-clicking that file's icon, by
putting it in the dock or desktop, and so forth?
as others have said, you can make the script executable (chmod +x
script.name) and name the script with script_name.command
The side effect of this is that it opens a terminal window (which
can be great if your command has output you want to see.
However, if you just want to double click a command to do some
task, or even better be able to drag and drop some files on top of
your script then create a little stub Applescript to run your
shell script
on open filelist
repeat with i in filelist
-- do shell script ¬
-- "my_command " & quoted form of POSIX path of i
do shell script "your.script.file.name.here" & ¬
quoted form of POSIX path of i
end repeat
end open
Bob Harris
--- Synchronet 3.18b-Win32 NewsLink 1.113