Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Suppose I have a graphic file (a .png, for instance), and I want to make that graphic the icon for another file or folder. Previously, I would copy the image to the clipboard (either in Preview, like in the instructions in this post or in the Get Info window in the Finder), then open the Get Info window for the target file, select the icon, and paste the image in as the new icon. In the past, this has worked for me.

When I do this in Lion, the result is that the target file now has the default .png icon (document with folded corner, blue-ish image in the middle, and the letters "PNG"), rather than the particular .png image I intended to paste. If the image I am pasting is a .pdf, I get the same results, except that the resulting target file icon has the letters "PDF".

Is there another way that I can assign a custom icon from a graphic file to another file in Lion, because I'm still unable to do it?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

When Preview fails, I turn to the Web Browser, master of all filetypes.

Open the image in Safari, Chrome, or Firefox by dragging it to the app's icon or using
File-> Open.

Right click on the image and choose Copy Image (be careful not to use Copy Image URL or Copy Image Location).

From there, use the standard procedure of pasting into the Get Info window.

If the image you want to use is a PDF, you'll need to create a rasterized version that you can copy from the web browser. You can still use Preview for this: open the PDF, choose File-> Export and set the format to PNG. You can open the exported version and copy that.

share|improve this answer
    
I don't know why this works, but it does. I never would have expected Safari would be a better file preview app than Preview. –  Daniel Lawson Mar 17 '12 at 14:19

something similar was asked before:

Change OSX Folder Icons (Working on OSX Lion)

a more verbose instruction is here:

http://www.mac-software-tutorials.com/mac-icons.html

basically, once you have opened the image you want to use in Preview, First you CMD-a, THEN you CMD-c to copy it, then you paste it over the old icon (that you get with the 'get info' trick).

share|improve this answer
    
Thanks for the tip, but that's exactly what I've tried, and sadly, I'm still not getting it to work. –  Daniel Lawson Mar 17 '12 at 13:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.