Re: Points vs pixels in a bash script
Re: Points vs pixels in a bash script
- Subject: Re: Points vs pixels in a bash script
- From: Carl Hoefs via Cocoa-dev <email@hidden>
- Date: Mon, 8 Jun 2020 16:00:05 -0700
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
> <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden