Want to add some Scala icon bling to everything on your Mac? Here's how you do it.
I couldn't sleep last night, and for some reason I pictured the Mac Finder, showing me those generic icons for files that the mac simply doesn't know about. You know what I mean:
Next, you've gotta modify MacVim's Info.plist file (located at
/Applications/MacVim.app/Contents/Info.plist) by adding this:
<dict> <key>CFBundleTypeExtensions</key> <array> <string>scala</string> </array> <key>CFBundleTypeIconFile</key> <string>MacVim-scala</string> <key>CFBundleTypeName</key> <string>Scala File</string> <key>CFBundleTypeRole</key> <string>Editor</string> <key>LSIsAppleDefaultForType</key> <true/> </dict>
You stick this somewhere inside here:
<dict> <key>CFBundleDocumentTypes</key> <array> ...
There are a ton of these in there, so you shouldn't have a tough time finding it.
Next, copy the ICNS file file into
Log out and log back in (or whatever better hack you know how to do in order to get the OS to see the change), and you should start seeing things like this:
Yeah, it's a bit excessive, but hey... I really couldn't sleep.