2

Basically, what is the equivalent to

what_is_associated call_diagram.dot.svg

which would return some "pointer" back to the Vivaldi app on my system.

See below for what does the job graphically:

enter image description here

I did see some related questions:

bash - List of file types and default Ubuntu applications to open with - Ask Ubuntu

  • xdg-utils didn't seem to work after installing with macports, so that's out.

Where does Mac OS X store file association information?

  • That's a really old question, some of the utilities don't have the same path anymore and none of the answers were very informative about getting an exact result.

For what it's worth, I want it because some of my files are associated with VS Code and some with Sublime Text. Under some conditions I also get provided a line number and the syntax to specify it is different:

  • Sublime: subl <filename>:<linenum>
  • VS Code: code <filename>:<linenum> -g

1 Answer 1

1

The system wide application to file extension mappings is handled by the Launch Services process in modern versions of macOS. Based on this post I think you might be able to just parse the associated plist file to find the associations you're looking for.

1
  • An example on how to parse the plist to find the relevant information would be useful.
    – nohillside
    Mar 8, 2023 at 20:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .