Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Turn trackpad clicking on and off via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Turn trackpad clicking on and off via AppleScript
Authored by: fogboy on May 16, '06 03:32:09PM

i posted the below as a hint, and it didn't go, and i realized it must be because the issue was dealt with previously. indeed. here's my slightly shorter solution.

Occasionally, I let other people (my partner, co-workers) hop on my PowerBook to look something up or write a quick email etc. My practice of keeping the trackpad on clicking mode can be annoying and confusing to those who don't use it, or who don't even know it's possible, as they inadvertentlly click on something they didn't mean to. Yet for me, drilling down into the Keyboard & Mouse preference pane and unchecking the "Clicking" box was more time consuming and than I'd like. This applescript was for me an elegant solution, hope others may fine it useful. (It's especially useful with Quicksilver, since i can just invoke, hit t-o-g-Return (which finds the script i've named "Toggle Trackpad Clicking") and it's done)

Important: for the script to work you must have "Enable access for assistive devices" checked in the Universal Access prefernece pane. Also, your mileage may vary and it's possible the delay written in to the script will need to be longer or shorter.

how to use:

  • copy the text below
  • paste into Script Editor
  • save to a convenient place, choosing "Application" from the File Format pull-down menu in the Save dialog.
  • Enjoy!

tell application "System Preferences"
end tell
tell application "System Events"
	tell process "System Preferences"
		click the menu item "Keyboard & Mouse" of the menu "View" of menu bar 1
		delay 4
		click the radio button "Trackpad" of the first tab group of window "Keyboard & Mouse"
		click the checkbox "Clicking" of the first group of the first tab group of the window "Keyboard & Mouse"
	end tell
end tell
tell application "System Preferences"
end tell

[ Reply to This | # ]