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: Marco S Hyman via Cocoa-dev <email@hidden>
- Date: Mon, 8 Jun 2020 15:44:05 -0700
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