How to set application icon using command line?
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;