 |
 |
Unix command to detect displays
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Sep 2004
Status:
Offline
|
|
I am trying to automate the 'detect displays' action of the displays menu (or system preferences pane).
It can be done in applescript via GUI scripting, but this is clumsy and slow.
Is there a UNIX command to detect displays?
Thanks
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Nope, I don't think so. If you want one, file an ER with Apple.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jan 2004
Location: Indianapolis, Indiana
Status:
Offline
|
|
What exactly are you trying to achieve?
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jul 2002
Location: Norway
Status:
Offline
|
|
You could use AppleScript in cli. man osascript
|
|
Mac Pro 2 x 2.8 GHz Quad-Core, Nvidia GeForce 8800GT
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Sep 2004
Status:
Offline
|
|
I am trying to write an applescript which changes my sleep settings, detects displays then starts a presentation in powerpoint, all automatically.
I want a slick way of starting a presentation, without the audience having to watch me do all those things manually. There is a slight security issue as well in that I don't really want my students to see what's on my computer, other than the presentation.
Changing sleep settings is no problem; nor is starting the PPT presentation - both work very quickly from applescript (with a bit of help from the cli). 'Detect displays' however requires GUI scripting, which first opens system preferences, monitors control panel then clicks the 'detect displays' button, then quits system preferences.
I was hoping that there might be a purely UNIX way of detecting the presence of a second monitor, which would remove the need for this part of the applescript.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
Originally posted by BrandonCorbin:
What exactly are you trying to achieve?
Side note: The picture in your signature is sweet, what's it of?

|
"In Nomine Patris, Et Fili, Et Spiritus Sancti"
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status:
Offline
|
|
Newer graphics cards automatically detect a new display. It's really spiffy--plug 'n play VGA.
|

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
Originally posted by Detrius:
Newer graphics cards automatically detect a new display. It's really spiffy--plug 'n play VGA.
I've actually noticed this on my 15" Powerbook for the DVI port. My Pismo never did it, but it's very handy that it auto-detects now. Gotta love it. 
|
"In Nomine Patris, Et Fili, Et Spiritus Sancti"
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Jun 2001
Location: Northwest Ohio
Status:
Offline
|
|
Originally posted by AlanU:
There is a slight security issue as well in that I don't really want my students to see what's on my computer, other than the presentation.
You could create a second user just for presentations such that your students wouldn't see anything but what was in that user's folder... which would basically be just the presentation.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
Originally posted by Person Man:
You could create a second user just for presentations such that your students wouldn't see anything but what was in that user's folder... which would basically be just the presentation.
Novel idea- I like it!
|
"In Nomine Patris, Et Fili, Et Spiritus Sancti"
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Jun 2001
Location: Northwest Ohio
Status:
Offline
|
|
Originally posted by [APi]TheMan:
Novel idea- I like it!

|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|