Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Your error code has nothing to do directly with your AppleScript. Error –10810 is a Launch Services error code signaling a generic, i.e. unknown error. It seems to get thrown quite often when OS X’ process table runs over. There is a quite thorough <a href="http://www.thexlab.com/faqs/error-10810.html" rel="nofollow">background post on the issue at the X Labs</a>, complete with step by step instructions to diagnose (and possibly remedy) the issue.</p> <p>On an OT note, I notice you use GUI scripting to toggle Hot Corners on or off. This is unnecessary: Lion’s <em>System Events</em> can script these settings via its <em>Expose Preferences Suite</em>, i.e.</p> <pre><code>property hotCornerSettings : {} to disableHotCorners() set hotCorners to {} tell application "System Events" tell expose preferences set end of hotCorners to a reference to bottom left screen corner set end of hotCorners to a reference to top left screen corner set end of hotCorners to a reference to top right screen corner set end of hotCorners to a reference to bottom right screen corner repeat with hotCorner in hotCorners set hotCornerProps to properties of hotCorner set end of hotCornerSettings to {hotCorner, {activity:activity of hotCornerProps, modifiers:modifiers of hotCornerProps}} set properties of hotCorner to {activity:none, modifiers:{}} end repeat end tell end tell end disableHotCorners to restoreHotCorners() tell application "System Events" tell expose preferences repeat with settings in hotCornerSettings set properties of item 1 of settings to item 2 of settings end repeat end tell end tell end restoreHotCorners </code></pre> <p>… which spares you the can of worms that is GUI scripting.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload