how to change "open with" defaults via command line?!?
folks,
i know that if i get info on a file -- in this case, a filemaker 5.5 file -- i can choose the default "open with" settings and apply those settings to all files of that kind. see the attached image for what i mean.
but how do i do that via the command line?
thus far, here's what i've got: i know that i can open a document called "scrubbing shell.sh" on my desktop WITH either MS Word of TextEdit by calling:
open -a textedit /Users/david/Desktop/scrubbing-shell.sh
or
open -a Microsoft\ Word /Users/david/Desktop/scrubbing-shell.sh
no sweat. BUT....how do i set the defaults so that it ALWAYS opens with that app in the future when double-clicking via the GUI?
many thanks, ya'll!
david koff
associate systems admin
the j. paul getty trust
dkoff AT getty DOT edu
i know that if i get info on a file -- in this case, a filemaker 5.5 file -- i can choose the default "open with" settings and apply those settings to all files of that kind. see the attached image for what i mean.
but how do i do that via the command line?
thus far, here's what i've got: i know that i can open a document called "scrubbing shell.sh" on my desktop WITH either MS Word of TextEdit by calling:
open -a textedit /Users/david/Desktop/scrubbing-shell.sh
or
open -a Microsoft\ Word /Users/david/Desktop/scrubbing-shell.sh
no sweat. BUT....how do i set the defaults so that it ALWAYS opens with that app in the future when double-clicking via the GUI?
many thanks, ya'll!
david koff
associate systems admin
the j. paul getty trust
dkoff AT getty DOT edu
macbook pro intel 2 dual core, Mac OS X (10.4.9)