When I run a bash script from Spotlight, a terminal window launches to execute it. The window closes when the script finishes but I'd like to prevent that window from appearing on my desktop at all.
The script has several variants (in the same script) and much like {e,f,}grep, uses the launch name, $0, to select its options. It appends some stuff to a file and opens an editor (emacs, though that's not relevant) on the file, so rhe only window I need for interaction is the editor.
Right now, the only overhead per variant is a hard link to the script. I'd rather not use Platypus or AppleScript apps to launch it/them as then I'd need a whole package per variant. I'd just like a way for the terminal to run without showing its window.