niamiot Posted August 8, 2013 Share Posted August 8, 2013 Hi, I'm a newbie in both applescript and workflow, however I just have "coded" a very simple workflow to toggle Apple keys and function keys. The workflow is activated with the shortcut "ctrl+@". A notification is returned to the system once keys have been toggled. If you're interested, you can download it from here I hope it helps some of you ++ Link to comment
Puck Posted August 11, 2013 Share Posted August 11, 2013 Hey, love your workflow. It's so quick and all in the background. Tried this on my own, but this is way better. Thanks a lot niamiot! Ciao Link to comment
Puck Posted November 15, 2013 Share Posted November 15, 2013 (edited) Hi there, after I updated to OS X 10.9 Mavericks. The Script didn't work. I found this one which works except not passing the {query} to the Post Notification. tell application "System Preferences" set current pane to pane "com.apple.preference.keyboard" end tell tell application "System Events" if UI elements enabled then tell tab group 1 of window "Keyboard" of process "System Preferences" click checkbox "Use all F1, F2, etc. keys as standard function keys" if (do shell script "defaults read -g com.apple.keyboard.fnState") = "1" then set fnStateRead to "Special Keys - Volume, iTunes..." else set fnStateRead to "Function Keys - F1, F2, F3..." end if do shell script "~/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier -message \"Function Swapper, an AS & Shell script\" -title \"" & fnStateRead & "\" -activate com.orderedbytes.ControllerMate4" end tell else tell application "System Preferences" set current pane ¬ to pane "com.apple.preference.universalaccess" display dialog ¬ "UI element scripting is not enabled. Check \"Enable access for assistive devices\"" end tell end if end tell tell application "System Preferences" quit end tell Hope this helps. Have fun! Edited November 15, 2013 by Puck Link to comment
casaper Posted December 13, 2013 Share Posted December 13, 2013 (edited) Hi, I've just added a keyword to the workflow, so it can be triggered by keyword. https://content.wuala.com/contents/casaper/share/Fn%20Apple.alfredworkflow/?dl=1 Edited December 13, 2013 by casaper Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now