Aliases no longer retain the custom icons of their targets

After upgrading to an 2020 M1 MBA running 11.4, none of my aliases pointing folders with custom icons have have retained those custom icons.


And even if I make new custom icons for those folders, then make aliases of those folders, those aliases display the generic folder icon.


Example: I have a folder called "Bills," which has a custom icon of a filing cabinet instead of the generic blue folder — but any alias of this folder (even one I make today) — is the generic folder icon.


In Get Info, the Preview image is of the custom icon, but the image in the upper left is generic.


If I copy-paste the custom icon onto the alias, it does take, but it no longer includes the "alias arrow" in the bottom-left corner. But a) I don't want to have to copy-paste icons onto dozens (hundreds?) of aliases, and b) when I do this the alias balloons from being a few K to being 1MB+.


Is this a known bug or is it just me?


Posted on Jun 24, 2021 3:25 PM

Reply

Similar questions

3 replies

Jun 25, 2021 8:45 AM in response to 100 Watt Walrus

There are two approaches to replicating your folder image in an alias using AppleScript and one using the Terminal:


use scripting additions

set thisFolder to POSIX path of (choose folder) as text
set trimmed to ((characters 1 thru -2 of thisFolder) & " alias") as text
do shell script "ln -s " & thisFolder & space & trimmed's quoted form)
return

or with AppleScript/Objective-C:


use framework "Foundation"
use AppleScript version "2.4" -- at least Yosemite
use scripting additions

property NSURL : a reference to current application's NSURL
property NSFileManager : a reference to current application's NSFileManager

set thisFolder to POSIX path of (choose folder) as text
set tf_url to NSURL's fileURLWithPath:thisFolder
set al_url to NSURL's fileURLWithPath:(((characters 1 thru -2 of thisFolder) & " alias") as text)
NSFileManager's defaultManager()'s createSymbolicLinkAtURL:al_url withDestinationURL:tf_url |error|:(reference)
return


or


at the terminal command line creating a soft link to the folder alias name:


ln -s /Users/username/Desktop/Junk /Users/username/Desktop/Junk\ alias


Tested: macOS 11.4

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Aliases no longer retain the custom icons of their targets

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.