macos-fn-toggle icon indicating copy to clipboard operation
macos-fn-toggle copied to clipboard

not working in macOS Sierra

Open kevindashgit opened this issue 7 years ago • 9 comments

OSX v10.12.6

Probably this is assumed w/ the fancy new touch bar and the complexity it introduces - but a fn key toggle would be AWESOME for my workflow!

Any known workarounds?

kevindashgit avatar Sep 28 '17 22:09 kevindashgit

It seems to be working for me. What exactly is the issue you're facing? It's even working on High Sierra for me.

biocross avatar Sep 29 '17 07:09 biocross

When I attempt to run it I get the error (in a dialog window) The action "Run AppleScript" encountered an error.

kevindashgit avatar Sep 29 '17 19:09 kevindashgit

Oh I got this too when I upgraded to Sierra. Just delete the current binary you have, re-download and follow the installation steps again, it'll start working.

biocross avatar Sep 30 '17 08:09 biocross

hmmm - I tried this but no luck.

git pull && make clean && make install && ./fn-toggle.app/Contents/MacOS/Application\ Stub

yields both the error dialog mentioned above along w/ the following output in stdout:

2017-10-02 13:02:42.974 Application Stub[78836:2812651] Cache file at /System/Library/Caches/com.apple.automator.actionCache-system-readonly.plist is not valid: System Languages have changed.
2017-10-02 13:02:42.974 Application Stub[78836:2812651] Failed to use read-only system cache from installer at /System/Library/Caches/com.apple.automator.actionCache-system-readonly.plist.

kevindashgit avatar Oct 02 '17 20:10 kevindashgit

Actually . - now that I look more closely at the automator script - the Keyboard pane of System Preferences no longer contains a checkbox that allows default usage of F1, F2, etc Keys - so default selecting the first checkbox wouldn't do the trick. In fact, it should have checked Adjust keyboard brightness in low light but for whatever reason this doesn't happen.

kevindashgit avatar Oct 02 '17 20:10 kevindashgit

In the end - I found this to be a solution that better suited my needs: https://www.imore.com/how-make-function-keys-default-touch-bar-display

As its application specific and not system wide - which is super ideal IMO.

kevindashgit avatar Oct 02 '17 20:10 kevindashgit

Here's a fix:

sthodup1 avatar Feb 09 '18 18:02 sthodup1

tell application "System Preferences" reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard" end tell

tell application "System Events" to tell process "System Preferences" repeat until exists tab group 1 of window 1 end repeat click checkbox 1 of tab group 1 of window 1 end tell

quit application "System Preferences"

sthodup1 avatar Feb 09 '18 18:02 sthodup1

Also make sure to give fn-toggle accessibility access

sthodup1 avatar Feb 09 '18 18:02 sthodup1

master updated to work with Ventura

jkbrzt avatar May 26 '23 08:05 jkbrzt