Skip to content

screen

by admin on April 22nd, 2016
    put the working rectangle of screen 1 into bestScreenArea

    repeat with x = 1 to the number of screens
        put return & the scaleFactor of screen 1 after card field 1
    end repeat

The ‘screen’ objects can be used to retrieve information about any screens (i.e. computer displays, projectors) attached to the current computer. Information provided consists of its full rectangle (including “forbidden” areas like the dock, menu bar etc.) in the property rectangle, the rectangle available for positioning windows as working rectangle, and whether the screen operates at 1× scale or is a Retina screen can be determined by examining its scaleFactor.

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS