dock position
dock position
- Subject: dock position
- From: 2551 <email@hidden>
- Date: Sun, 26 Oct 2014 23:33:39 +0700
Hmm, so one of Yosemite's minor irritations is the removal of the Dock position menu item from the Apple menu.
Now we're supposed to go hunting around on the Dock for the minute separator and control-click it to get the manu, or open up System Preferences > Dock. All very fiddly for my taste.
The best workaround I could come up with was a GUI script (with a hotkey via FastScripts), but it has the ugly sideeffect of flashing the sys pref pane in your face, albeit breifly.
Can anyone improve on this? (In the old days, I might have tried a defaults write... / killall Dock combination. I did briefly look into it, but remembering that defaults are now officially not to be messed with, didn't pursue it).
Any better suggestions for how to automate this or improve my effort below much appreciated.
global x tell application "System Events" set x to dock preferences's screen edge as text end tell
tell application "System Preferences" activate set current pane to pane "Dock" end tell
tell application "System Events" tell process "System Preferences" tell window "Dock" if x = "left" then -- "right" is button 3 click radio button 2 else click radio button 1 end if end tell end tell end tell
tell application "System Preferences" to quit
|
_______________________________________________
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