Created
October 23, 2012 18:50
-
-
Save ttscoff/3940762 to your computer and use it in GitHub Desktop.
AppleScript to reset font server and launch Chrome, avoiding bad font issues.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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