move application to secondary screen
move application to secondary screen
- Subject: move application to secondary screen
- From: Marc Monguio <email@hidden>
- Date: Thu, 14 Sep 2006 18:40:47 +0200
How can I move the main window of an application to the secondary
display programatically?
I've tried the Applescript "tell application "flashprojector" to set
position of window 1 to {1234,1234}" without luck. The application
doesn't understand Applescript because it's a Flash Projector
executable.
I've also tried to replace the main display by the secondary before
programatically launching the Flash projector application. The Flash
projector should launch in the new main display, afterwards I would
change again the main display to get it back to its original
position. To do so I tried Quartz CGConfigureDisplayOrigin function,
this should enable me to move the display origin so that the
secondary display gets the 0,0 and becomes the main screen. No luck
either, I can change the display origin of the main screen but it
keeps being the main screen (it has the menu bar)
I also saw a DMSetMainDisplay function in the Display Manager
Reference but it has been deprecated in Tiger and I don't find a
similar one in the Quartz Display Services.
thanks in advance,
Marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden