Pages

Tuesday, January 22, 2013

Re: how to detect if external display is present

This seems to cover the same issue:

 

http://macscripter.net/viewtopic.php?id=28627

 

From what I can tell at the moment, a full answer is going to have to be done in Obj-C, but a short Applescript like this will at least get the number of displays connected:

 

 

tell application "Image Events"

     launch

          get properties of every display

     quit

end tell


View the original article here

0 comments:

Post a Comment