Re: multiple monitors
Re: multiple monitors
- Subject: Re: multiple monitors
- From: Yvan KOENIG <email@hidden>
- Date: Sat, 18 Feb 2017 16:31:52 +0100
Le 18 févr. 2017 à 16:28, Robert Poland < email@hidden> a écrit :
On Feb 18, 2017, at 8:19:AM, Yvan KOENIG < email@hidden> wrote:
Hello
Is one of you knowing what is returned by :
use framework "AppKit" -- for NSScreen
set theScreens to (current application's NSScreen's screens()) theScreens's |count|()
when executed on a mac with two monitors ?
I assume that it's 2 but I'm not sure and don't ave several monitors available.
Yvan KOENIG running Sierra 10.12.3 in French (VALLAURIS, France) samedi 18 février 2017 16:19:28
You're right, it is the count of screens plugged into the Mac.
Robert Poland Fort Collins, CO
Thanks Robert and thanks Steve too.
Somebody is asking for a piece of code opening some application if he connects an external monitor to its macBook so I assume that using and idle script testing the count of displays may solve the problem.
Yvan KOENIG running Sierra 10.12.3 in French (VALLAURIS, France) samedi 18 février 2017 16:31:46
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden