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


Click here to return to the 'Toggle trackpad clicking via an AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Toggle trackpad clicking via an AppleScript
Authored by: benjaminooo on May 19, '06 08:20:27AM

I get an error for this on the click the keyboard & mouse part.. and in safari I can't select the entire code w/o going to "view source"



[ Reply to This | # ]
Toggle trackpad clicking via an AppleScript
Authored by: jwbales on May 19, '06 05:56:38PM
I solved the problem, it seems to be timing related, by inserting a one second delay before attempting to access the 'View' menu item. I also found that for my PowerBook G4 that a one second delay was also sufficient before attempting to client the 'Trackpad' tab group.
tell application "System Preferences"
	activate
end tell
tell application "System Events"
	tell process "System Preferences"
		delay 1
		click the menu item "Keyboard & Mouse" of the menu "View" of menu bar 1
		delay 1
		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"
	quit
end tell


[ Reply to This | # ]