Skip to content

Instantly share code, notes, and snippets.

@elmariofredo
Last active October 12, 2021 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmariofredo/d8f2f3c55b03db2a77a46831dd716d14 to your computer and use it in GitHub Desktop.
Save elmariofredo/d8f2f3c55b03db2a77a46831dd716d14 to your computer and use it in GitHub Desktop.
Google Chrome.app custom icon
#!/bin/bash
cp $HOME/Library/Mobile\ Documents/com\~apple\~CloudDocs/Icons/Google\ Chrome /Applications/Google\ Chrome.app/Icon$'\r'
osascript <<EOS
set appName to "Google Chrome"
tell application appName to quit
repeat
tell application "System Events"
if appName is not in (name of application processes) then exit repeat
end tell
do shell script "sleep 0.5"
end repeat
tell application appName to launch
EOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment