Retain Custom Drive Icon
-
Is there a way to clear everything except for the drive icon? The only way that I have found is to ask USBClean to leave ._AppleDouble files as well as the .VolumeIcon.icns. However, I only want to keep the icon. The rest of the ._AppleDouble files I would like to have removed. Am I possibly missing something? Is this something that can be done with USBClean? Thank you!
-
Alright, what I've discovered is that just keeping the .VolumeIcon.icns file on the drive doesn't keep the custom icon being used by the Finder. There's another file ._. that seems to be needed as well.
If you use USBclean to remove all Apple files on the drive, except for .VolumeIcon.icns, Finder switches to the default volume icon. After mounting the drive again, the following command in Terminal seems to tell Finder to use the custom .VolumeIcon.icns again and restores the ._. file.
setfile -a C "/Volumes/Drive Name/"
Is there any chance of either keeping the ._. file with the .VolumeIcon.icns file, or to trigger the same action as the terminal command right before unmounting? I'd like USBclean to remove everything off the drive but retain the custom drive icon (and have it used by Finder).
Thanks!
-
@FrozenDude could you give this beta version a try ad see if it works for you:
https://send.tresorit.com/a#lImHCI3MBbSDjSN40SOHXAIve added a new exception field where you can specify file types you want to keep. If you add "._." there, this should hopefully give you the result your'e looking for.
Can you let me know if it works for you, and if so I'll polish up the interface and release a new version.
-
@FrozenDude Ive just released v4.1 on my servers with a new Exceptions sub-tab on the File Types tab in Settings.
you can add ._. to the token field to preserve these file types during a clean.
-
Sorry for the delay. I just tried the new version with the exception option, and it does indeed keep the volume icon and Finder is displaying it properly on remount now. Thank you for looking into it and providing a solution! It also provides additional flexibility for retaining other files if needed, which is also appreciated.
-
@FrozenDude great! thanks for the feedback