In other languages like python and php you can get a dump of every action available on an object. Like var_dump($_POST) in php or dir(os) in python. Is there something similar in applescript? What I'm trying to do is set the mouse sensitivity since I use the mighty mouse for day to day but a usb mouse for gaming and the sensitivities are really different. This is what I have so far:
Which will open up the mouse preferences. Now I need a way to set the "tracking" slider to a certain value, probably 0.5 if I want it in the middle. How do I inspect the current pane to get a list of what values I can change and optionally what range they support?
*edit
Got a little closer. I think I need to fill in the blank for the statement: 'get the name of every ??? of pane id "com.apple.preference.mouse"' that would give me all the names and I can figure out which is for the tracking slider
Code:
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preference.mouse"
end tell
Which will open up the mouse preferences. Now I need a way to set the "tracking" slider to a certain value, probably 0.5 if I want it in the middle. How do I inspect the current pane to get a list of what values I can change and optionally what range they support?
*edit
Got a little closer. I think I need to fill in the blank for the statement: 'get the name of every ??? of pane id "com.apple.preference.mouse"' that would give me all the names and I can figure out which is for the tracking slider
Last edited: