How could this be generalized so that you could use any path selectors, or something like ls and open? Or is there already some smarter way to do that?
One alternative would be open *.xc*
, but it obviously doesn't display a menu if there's multiple matches.
Essentially, this is just a friendly wrapper around open *.xc*
. You could modify the ls
line to use any pattern if you wanted to do something different.
I would like to add an option parser to handle -a appname
arguments so you could still specify which app to open the result in. I got frustrated with getopts before I got that worked out...