I’ve had a really annoying issue with Sublime on my Macs that I just fixed, so I thought I’d share in case anyone else encounters it.
I install Sublime Text/Merge using HomeBrew. What I was finding was that I couldn’t double click things in the finder, or use “Open with”. It would LOOK like it was going to work and Sublime Text would come to the front, but the file wouldn’t open. I had to drag and drop files, or use “File -> Open” to open stuff.
In the end after much googling, removing the Quarntine Flag from the Sublime Binary by following the steps here has fixed it for me fully. Double clicking files associated with Sublime work perfectly now.
For future in case that blog goes away:
xattr /Applications/Sublime Text.app
If the com.apple.quarantine attribute is associated with the application, you should see the following output:
computername:Applications username$ xattr /Applications/Sublime Text.app
com.apple.quarantine
computername:Applications username$
To remove the quarantine attribute, you would then run the following command:
sudo xattr -r -d com.apple.quarantine /Applications/Sublime Text.app```