

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.Most of the time, if you’re changing a file or folder icon, you want to use your own photo or a photo from the web. Get Modding Mac OS X now with the O’Reilly learning platform. You can use this same method, more or less, to change the document icons defined in an application’s ist, but as the next sections show, this process is a little trickier. When you log back in, the Finder reloads all its icon associations and updates the application icon with your changes. Save any work in progress on your computer and log out of your account. When you’re satisfied with your edits, replace the application’s.

Use Icon Composer or another icon utility to change the look of your application. Use the directions from earlier in this chapter to create an entirely new icon file or update the existing one. As it does, it moves the file from the top level of AutoThumbnail into an Original Images subfolder, where you can recover your updated file.
The new script automatically executes, adding an icon to your file. Locate an image file without a custom icon and drop it into the AutoThumbnail folder. The new action appears in the right-hand column. A dialog appears, asking you to choose a script to attach to this folder. Navigate to the Desktop and select AutoThumbnail. This globally permits folders to perform attached actions.Ĭlick the plus (+) button at the lower-left of the Folder Actions Setup window. The Folder Actions Setup window appears.Ĭheck Enable Folder Actions. Locate Folder Actions Setup and double-click it. Open the AppleScript folder in the / Applications directory. The next sections will show you how to customize icons at their core.Ĭreate a new folder on your Desktop. To change the default icon, you’ve got to dig a little deeper. These methods change a file or folder only on the surface. To hide custom icons, use c (lowercase) instead. To enable custom icons, use the C option (uppercase). Its attribute flag ( -a) allows you to toggle the custom icon flag for files and folders. The SetFile command, which is part of the Xcode Tools distribution, offers a powerful way to hide or show custom and default icons. This removes the pasted icon from the file and restores its original icon. Just select the icon at the top of the Get Info window and press the Delete key. You can easily restore the default icon at any time. Select the icon at the top of the window. Choose File → Get Info (⌘-I) to open an Info window for this second file. Select the file you want to paste the icon onto. An Info window opens, showing the current icon at the top-left, next to the file or folder name.Ĭlick on the image of the icon to select it you’ll know the icon is selected when a blue outline appears around it. In the Finder, select a file or folder with an intriguing icon.
