The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   AppleScripting Omni Apps (http://forums.omnigroup.com/forumdisplay.php?f=46)
-   -   Changing Inspector Locations w/ Applescript: OmniGraffle (http://forums.omnigroup.com/showthread.php?t=16131)

cwingrav 2010-05-06 10:00 AM

Changing Inspector Locations w/ Applescript: OmniGraffle
 
I'm using a second display on my laptop and every time I unplug and then replug, all the open inspectors go to my laptop's monitor. I want to write a script to place the inspectors (Stencils, Styles, Colors, Fonts) at predefined locations on the second monitor. I know how to set a window's location with Applescript but I can't find these windows. Where in the OmniGraffle DOM are these windows located?

Cheers,
-chad

RobTrew 2010-05-06 12:10 PM

[QUOTE=cwingrav;76848] Where in the OmniGraffle DOM are these windows located ?[/QUOTE]

They are not included in the application object model exposed to applescript.

Applescripting the System Events library might at least enable you to automate a menu bar operation.

It sounds, however, as if the OS X menu is on the laptop in your dual display arrangement. Perhaps it would work better to have the menu on the external monitor when that is connected (the inspectors should follow).

While the external monitor is connected, you can use the [B]System Preferences > Displays[/B] dialog to drag the white menu bar over to the external monitor in the dual monitor layout display.

(The setting is a sticky one - the menu will revert to the external display whenever it is connected. This should mean, I think, that the inspectors will also revert to the external display).


[COLOR="White"]--[/COLOR]


All times are GMT -8. The time now is 01:41 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.