In my bash script setup.sh
, how to make macOS associate .foo
extension with /usr/local/bin/bar
, so that I can click on X.foo
in Finder (say) and have macOS perform /usr/local/bin/bar X.foo
?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityIn my bash script setup.sh
, how to make macOS associate .foo
extension with /usr/local/bin/bar
, so that I can click on X.foo
in Finder (say) and have macOS perform /usr/local/bin/bar X.foo
?