Finder allows the user to manually change the default 'Open With' application for a file by going to 'Get Info'.
Is there a way to programmatically do this, for example, with AppleScript, in order to change the default 'Open With' application of specific files?
My use-case is changing default 'Open With' application for files that are in a certain directory. I prefer the user doesn't have to do this manually.