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

mauka

macrumors regular
Original poster
Nov 24, 2006
124
41
Anyone have this problem?

After latest (applied 02/03/2012) Lion update all my files type .dvdmedia have changed to a white sheet of paper with upper right corner curled.

I have Applecare and they told me this morning I would have to manually change each file using get info and copy and paste.

That seems absurd, and I told the guy (nicely) that. But that was all he had.

Anyone here have a better method to make a global change to the icon that is associated to a type of file, in this case .dvdmedia.

Thank you
Alan
 
Last edited:
I do have the same problem and I can't find a better solution too.
So I started doing a cut/paste on every file.
But the problem is that every new file is still not with the correct icon.
 
No issues so far after updating so I won't test the solutions given, but here's what a search turned up:

From a discussion on "How to set an icon for a file type on Mac?"

Icons for file types are handled by Launch Services (the service determining, among other things, which application handles a file type). The file icon is always provided by the application handling opening a file by default. This way, e.g. Preview provides PDF icons by default, and PNG icons, but if you change all PNG files to open using Pixelmator instead, these files get a Pixelmator-style icon afterwards.

I'd say it could be a mismatch of icons in Launch Services, altered Application/Contents/Info.plist or missing Application/Contents/Resources/ files.
Since the problem occurred after the update it's probably Launch Services. In any case I'd say, if possible, reinstalling the application covers all three.


Then there's the manual way.

It would be making a custom icon, appending it to every file of type .dvdmedia and changing the file's attribute to use the custom icon
You can use 'sips' to give an image file a custom icon of itself ('sips' acts on the original file so it might be safer to work on a copy):

Code:
/bin/cp imagefile.jpg donorfile.jpg
/usr/bin/sips -i donorfile.jpg

If you just wanted to give an image file a thumbnail custom icon of itself, you can stop there. Otherwise, if you have the "Developer" / "X Code" tools installed, you can use 'DeRez' and 'Rez' to manipulate the resources to copy the newly created 'icns' resource to a file:

Code:
/Developer/Tools/DeRez -only icns donorfile.jpg > tempicns.rsrc

Then copy the the temp file into the icns resource of the recipient file, and set the custom icon file attribute:

Code:
/Developer/Tools/Rez -append tempicns.rsrc -o recipientfile.xyz
/Developer/Tools/SetFile -a C recipientfile.xyz

combined with
find ~/ -name '*.dvdmedia'

It would alter only existing files and has to be redone for every new one..
 
Have you tried this?

Select one of your .dvdmedia files.
Choose Get Info from the Finder's File menu.
Find the windows 'Open with' section, and select your favorite media player in the menu.
Close the window, and wait for a bit for the Finder to catch up.
Check if your files icon has changed to the one you want.
If it has, think about whether you want your favorite media player to (by default) open all files of that type. If so, repeat the Get Info Process, but this time click the "Change All..." button in the 'Open with' section of the 'Get Info' window.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.