Skip to main content
Question

App icon from command line

  • December 8, 2020
  • 1 reply
  • 2 views

Forum|alt.badge.img+15

I am looking for a command line way to extract the icon from an app. Any ideas? Apps in Big Sur do not necessarily have an icns file in the app bundle. (I’m looking at you System Preferences)

1 reply

Mauricio11
Forum|alt.badge.img+11
  • Valued Contributor
  • 173 replies
  • December 10, 2020

If you are looking for a "one-off" copy of icons a quick way would be:
Create a folder /tmp/myIcons
Then try to get all icons

find /  -name "*.icns" -exec cp '{}' "/tmp/myIcons" ;

A few prompts to "Allow" later and you should have some 1000 files.
Looking for System and I found 'SystemPrefApp.icns'

A second find and we can get the path to that file.

find / -name "SystemPrefApp.icns"
/System/Library/CoreServices/ManagedClient.app/Contents/PlugIns/ConfigurationProfilesUI.bundle/Contents/Resources/SystemPrefApp.icns

No a nice way but could be a starting point.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings