Sublime Forum

Can't update plist.info on a Mac

#1

Hi

I am running the latest version of Sublime Text on a Mac, with the following versions:
Sublime Text 3 (Build 3176)
MacOS High Sierra Version 10.13.6

I would be able to associate some new file extensions with Sublime. Not to use Sublime as the default editor: What I want is to be able to right-click certain files in Finder and have Sublime appear in the “Open with” menu.

I read online that the way to do this was to edit plist.info in the Sublime package contents. I added the following item to plist.info:

	<dict>
		<key>CFBundleTypeRole</key>
		<string>Editor</string>
		<key>CFBundleTypeName</key>
		<string>VisualStudio</string>
		<key>CFBundleTypeExtensions</key>
		<array>
			<string>csproj</string>
			<string>sln</string>
		</array>
		<key>CFBundleTypeIconFile</key>
		<string>TEXT</string>
	</dict>

But after I did this, Sublime would no longer start - I got a message saying “Sublime Text quit unexpectedly.”

Have I got the entry wrong in plist.info? Do I need to find some other method for associating file types with Sublime on MacOS?

Any help gratefully appreciated.

Cheers
Clare.

0 Likes

#2

It doesn’t really feel like the CORRECT solution, but I have found a solution: Instead of creating a new CFBundleTypeRole element in info.plist, I have found that I can simply add my file types into another element, and then everything works fine.

0 Likes