Ninja'd! Good job, I'm on 10.6, Hagure caught the 10.5 difference.
Change: tell window _windowName to click button "Detect Displays" To: tell window _windowName to click button "Detect Displays" of group 1 of tab group 1 On Aug 25, 7:18 am, philostein <[email protected]> wrote: > If you don't want the Displays icon in the menubar, you could try this > script: > > -- > > try > > set _windowName to "" -- Change this to the window name in Displays > Preferences! > > tell application "System Preferences" > set current pane to pane "com.apple.preference.displays" > activate > tell me to delay 1 > set _displayWindows to name of windows > end tell > > if _displayWindows contains _windowName then > tell application "System Events" > tell process "System Preferences" > tell window _windowName to click button > "Detect Displays" > end tell > end tell > end if > > tell application "System Preferences" to quit > > on error a number b > activate > display dialog a > end try > > -- > > Change '_windowName' to the name of the relevant Displays window in > System preferences. Uses button clicks, very hacky. > > On Aug 25, 12:30 am, lloyd <[email protected]> wrote: > > > > > > > > > Hi, > > > One thing I would love to be able to do in a couple of keystrokes is > > to "detect displays" (normally accessed by a button in the "displays" > > pane of system preferences). Often I start work on my external monitor > > with my laptop closed, then at some point I need the extra screen and > > I flip open my laptop. Can quicksilver help me turn the laptop display > > on quickly instead of all the mousey-clickery I otherwise have to do? > > Thank you! --Lloyd. > > > sheepish p.s.: I'm on OS 10.5.8. QS is version beta56a7.
