Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Bassir

macrumors member
Original poster
Aug 27, 2008
43
0
Is there any way to disable the mouse input completely via AppleScript?

I'm interested in creating a script that disable the mouse when the computer is put to sleep—effectively making it so that the mouse cannot disturb the computer's screensaver. Upon return, the mouse input will be enabled again and computer will function normally.

Is there a command to disable and enable the mouse?
 
Is there any way to disable the mouse input completely via AppleScript?

I'm interested in creating a script that disable the mouse when the computer is put to sleep—effectively making it so that the mouse cannot disturb the computer's screensaver. Upon return, the mouse input will be enabled again and computer will function normally.

Is there a command to disable and enable the mouse?

Theoretically, if OS X has the ability to turn off the mouse input, you could create an AppleScript in Xcode and use "call method" to invoke it.

My question, though, is how are you going to sure that when the Mac wakes up, it's going to call the script that's going to re-enable mouse input? If it misses, for some reason, you might be left a nice doorstop.

(Well, not really. Mouse input would return after a restart I assume.)

Might be easier to just shut down or unplug the mouse.

mt
 
Theoretically, if OS X has the ability to turn off the mouse input, you could create an AppleScript in Xcode and use "call method" to invoke it.

My question, though, is how are you going to sure that when the Mac wakes up, it's going to call the script that's going to re-enable mouse input? If it misses, for some reason, you might be left a nice doorstop.

(Well, not really. Mouse input would return after a restart I assume.)

Might be easier to just shut down or unplug the mouse.

mt

Another script launches at the end of the screensaver.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.