Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pkreth

macrumors newbie
Original poster
Nov 3, 2014
1
0
I use the program MATLAB for engineering related applications, and this program has its default script or code file type set to the extension "m". Finder, by default, assumes that all m-files are "Objective-C Source Code" and tries to associate them with XCode, which I also have installed. MATLAB defines a new UTI, com.mathworks.matlab-source and has the correct plist entries for the m file extension. All of my m-files have the default, blank icon and their "Kind" under "Get Info" is listed as "Objective-C Source Code".

If I open a new instance of terminal and watch a folder with Finder in the background, I can run "touch test.m" and see the new file created with the correct icon in Finder. After about 2 seconds, Finder changes the icon back to the blank one. I want to get this fixed, but I'm not sure what's going on. The terminal thing is telling me that it's the OS messing things up here.

I've tried the following:

Clearing caches, clearing launch services
Reinstalling MATLAB
Used "Default Apps" (http://www.rubicode.com/Software/RCDefaultApp/) to ensure that the UTI and file extensions are set correctly

I'm not sure where to proceed or if there is anything that can be done. I've read a few other posts from the last 2 weeks that have had similar problems: one had issues with .mkv files, another with .doc and .docx, and I think there was another one, but I can't recall what that one was.

Does anyone have any ideas on this?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.