Programatically change which opens a file type

Hi there,

If we have 2 apps on our customers machines that can both open files of a certain file extension, is there any way via shell commands to set which application should be the default?

Essentially, I'm hoping to replicate Get Info > Open With > Change All, but using a script.

Thanks in advance!
Dave
:slight_smile: