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: Clark Cox via Cocoa-dev <email@hidden>
- Date: Wed, 10 Jun 2020 13:07:01 -0700
> On Jun 10, 2020, at 12:06 PM, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> For the record: I believe I have found a solution:
>
> tell application "Finder" to get bounds of window of desktop
>
> tells me the resolution of the screen in the same units (of course) as
This will not work if you have multiple monitors attached.
For example, on my machine, at the moment, it returns:
"{-1792, -366, 6720, 1890}"
>
> tell application "System Events" to get the title of every window of every
> process
>
> lateron.
>
> Thanks again to everyone who chimed in.
>
>
> _______________________________________________
>
> 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
_______________________________________________
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