Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Created October 23, 2012 18:50
Show Gist options
  • Save ttscoff/3940762 to your computer and use it in GitHub Desktop.
Save ttscoff/3940762 to your computer and use it in GitHub Desktop.
AppleScript to reset font server and launch Chrome, avoiding bad font issues.
tell application "Google Chrome" to quit
do shell script "atsutil server -shutdown"
set _running to missing value
repeat until _running is equal to "ATSServer is running"
set _running to do shell script "atsutil server -ping"
delay 1
end repeat
tell application "System Events"
repeat while (name of every process) contains "Google Chrome"
delay 1
end repeat
end tell
tell application "Google Chrome" to launch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment