Note that your AppleScript returns the size of ALL monitors combined. 
With four 1920x1080 monitors in a 2x2 arrangement it shows:

0, 0, 3840, 2160

-Carl



> On Jun 8, 2020, at 3:44 PM, Marco S Hyman via Cocoa-dev 
> <cocoa-dev@lists.apple.com> wrote:
> 
> Using
>>  system_profiler SPDisplaysDataType
>> I can retrieve the size of a Mac's display in pixels. 
>> 
>> However, the command
>> 
>>  tell application "System Events" to get the size of every window of every 
>> process
> 
> 
> tell application “Finder”
> set screen_resolution to bounds of window of desktop
> end tell
> 
> screen_resolution on my 5K iMac is 0, 0, 2560, 1440
> 
> Marc
> _______________________________________________

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to