Skip to content

Instantly share code, notes, and snippets.

@dcunited001
Created December 6, 2012 19:53
Show Gist options
  • Save dcunited001/4227747 to your computer and use it in GitHub Desktop.
Save dcunited001/4227747 to your computer and use it in GitHub Desktop.
Applescript to Reload KeyRemap4MacBook Private.xml
on run {input, parameters}
--version >= 7.99.5
--use "launch application" step instead
--tell application "KeyRemap4MacBook" to activate
tell application "System Events"
--version >= 7.99.5
tell application process "KeyRemap4MacBook"
tell window 1
tell radio button "Change Key" of tab group 1
repeat until exists (* wait until the object is accessible *)
delay 0.2
end repeat
click
end tell
tell button "ReloadXML" of tab group 1
repeat until exists (* wait until the object is accessible *)
delay 0.2
end repeat
click
end tell
end tell
end tell
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment