How to set application icon using command line? I created an application using &quot;Script Editor&quot;.
I would like to override the default icon using command line vs the usual drag and drop approach.
Is that possible?
Thanks!
The following approach worked to replace default icon (located at /Applications/Hello World.app/Contents/Resources/applet.icns for example) of &quot;Hello World&quot; application created using &quot;Script Editor&quot; with another icns icon file (Firefox icon for example).
cp &quot;/Applications/Firefox.app/Contents/Resources/firefox.icns&quot; &quot;/Applications/Hello World.app/Contents/Resources/applet.icns&quot;
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f &quot;/Applications/Hello World.app&quot;