A script to create Tahoe-looking icons from existing PNG or .icns files

Under Tahoe, the icons of all my AppleScript applets looked ugly, and I wanted to find a way to automate a process that would convert them to icons that look like the new-style Liquid Glass icons. As far as I understand these things, true Liquid Glass icons can only be created for apps built in Xcode, and I wanted standard .icns files that would at least look like Tahoe icons when used with my AppleScript applets. And I wanted to automate the process.

So here is an AppleScript app that converts an existing .icns file or a PNG file (256x256, 512x512, or 1024x1024) to an icon that looks like a Tahoe icon. By default it creates an icon with a light-colored background. If you add the string “dark” to the name of the script, it will instead create an icon with a dark background. If you add the string “both” to the name, it will create both styles.

The notarized, editable app is linked below. It contains (in its Helpers folder) two background images exported from the new Icon Composer. It requires the current BETA version of GraphicConverter12, because I can’t figure out how to use Apple’s built-in Image Tools to accomplish all its tasks. The code is clumsy and amateurish, but it seems to work. Any improvements will be welcome:

[https://mendelson.org/Resize%20Icon%20for%20Tahoe.zip]