Created
February 12, 2017 10:29
-
-
Save troutcolor/e8e694a4abd9f04657707980379532e0 to your computer and use it in GitHub Desktop.
detect retina display for applescript
This file contains 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
on isRetina() | |
set ret to (do shell script "system_profiler SPDisplaysDataType | awk '/Retina:/{print $2}'") | |
if ret is "Yes" then | |
return true | |
else | |
return false | |
end if | |
end isRetina |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment