0

I'm writing a script which opens some files, in their default applications, via the open command. Before I actually open a file, though, I'd like to check which application is listed as its default and perform some actions based on the result. This is easy enough to check in Finder (in "Get Info" under "Open With"). Is there a way to obtain the same information via shell commands?

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.