http://www.alfredforum.com/topic/1849-toggle-fn-key-behavior/?p=9730
I've been using this workflow for a while to easily toggle my fn key behavior for video games, but the workflow doesn't seem working since I updated to Alfred 2.8.1
This is what the script looks like:
on alfred_script(q)
tell application "System Preferences"
set current pane to pane id "com.apple.preference.keyboard"
tell application "System Events"
tell process "System Preferences"
click checkbox "Use all F1, F2, etc. keys as standard function keys" of tab group 1 of window "Keyboard"
end tell
end tell
quit
end tell
end alfred_script
Any help is appreciated!