Hejsan, hittade ett AppleScript som ska stänga av Aktiva skärmhörn.
-- © Copyright 2006, Jan Lehnardt <[email protected]>. All Rights Reserved.
-- Permission to copy granted for personal use only. All copies of this script
-- must retain this copyright information and all lines of comments below, up
-- to and including the line indicating "End of Jan's Comments".
--
-- Any commercial distribution of this code must be licensed from the
-- Copyright owner, Jan Lehnardt.
--
-- This script disables the four screen corners. It comes in handy, when you
-- use the accompanying enableHotCorners script to enable the screen corners.
-- This is useful, if you don't need Exposé and Dashboard in a fullscreen
-- application.
--
--
--
-- Version 1.0
-- - Initial release
--
--
-- Thanks to Daniel Jalkud and his fabulous FastScripts application.
--
-- End of Jan's Comments
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.expose"
end tell
tell application "System Events"
if not UI elements enabled then
tell application "System Preferences"
set current pane to pane "com.apple.preference.universalaccess"
end tell
--thanks to http://www.oreillynet.com/mac/blog/2006/07/ap...
display dialog "Please check the box called \"Enable access for assistive devices.\"" buttons {"Okay"} with icon 1 default button 1
end if
end tell
on setHotCornerAction(hotCorner, hotAction)
tell application "System Events"
tell process "System Preferences"
tell window "Dashboard & Exposé"
tell group 1
tell pop up button hotCorner
click
tell menu 1
tell menu item hotAction
click
end tell
end tell
end tell
end tell
end tell
end tell
end tell
delay 0.2
end setHotCornerAction
setHotCornerAction(1, "-") -- top left
setHotCornerAction(2, "-") -- bottom left
setHotCornerAction(3, "-") --top right
setHotCornerAction(4, "-") -- bottom left
tell application "System Preferences" to quit
Problemet är att det blir ett: System Events drabbades av ett fel: NSReceiverEvaluationScriptError: 4 vid
tell pop up button hotCorner
click
tell menu 1