Accessing Hot Corners using AppleScript in Mavericks
Hello,
I'm trying to update a previous utility that could be used to disable/turn off hot corners using an applescript (the script was taken from https://gist.github.com/klynch/827581 and is pasted below). Trying to update it for Mavericks, I saw that the 'top left screen corner' can no longer be used to refer to hot corners. Google has uncovered a 'stack exchange' question that seems to purport that it is not possible anymore (http://apple.stackexchange.com/questions/106775/how-to-fast-set-hot-corners-in-m avericks). Is that true?
If that is indeed true, is there a work-around to my work-around? Specifically, is there a way to easily disable hot corners for when I go into a full screen application or anything like that? I'm thinking something like Caffeine, but for hot corners and not for power saving options. Thoughts?
Thanks in advance!
Disable Hot Corner:
tell application "System Events"
activate
if UI elements enabled then
tell expose preferences
set properties of the top left screen corner to {activity:none, modifiers:{}}
set properties of the top right screen corner to {activity:none, modifiers:{}}
set properties of the bottom left screen corner to {activity:none, modifiers:{}}
set properties of the bottom right screen corner to {activity:none, modifiers:{}}
end tell
else
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.universalaccess"
display dialog "UI element scripting is not enabled. Check \"Enable access for assistive devices\""
end tell
end if
end tell
tell application "System Preferences" to quit
MacBook Air, OS X Mavericks (10.9)