Giter Club home page Giter Club logo

Comments (5)

artginzburg avatar artginzburg commented on June 15, 2024 1

I couldn't update the script to Ventura, due to various problems with AppleEvent handler and some other things. Gonna leave this open.

from functiontoggler.

artginzburg avatar artginzburg commented on June 15, 2024

Just updated the script to Monterey. Almost sure that it won't work for Ventura. I'll install it soon, and update the script accordingly.

from functiontoggler.

landonstewart avatar landonstewart commented on June 15, 2024

Is it just a matter of changing the AppleScript to the new location of the toggle when it is running on Ventura?

Earlier macOS versions
Choose Apple menu  > System Preferences.
Click Keyboard.
Select “Use F1, F2, etc. keys as standard function keys”.2

macOS Ventura
Choose Apple menu  > System Settings.
Click Keyboard in the sidebar.
Click the Keyboard Shortcuts button on the right.
Click Function Keys in the sidebar.
Turn on “Use F1, F2, etc. keys as standard function keys”.2

I wish I understood more about the apple script to try modifying this myself. I tried to modify src/Function Toggler.applescript without much success.

from functiontoggler.

artginzburg avatar artginzburg commented on June 15, 2024

Looks like we finally can try this once more. Some answer in a related thread reads that AppleScript is now working on new System Settings, on MacOS Ventura 13.3: https://forum.latenightsw.com/t/applescripts-not-working-on-new-system-settings-on-macos-ventura/3986/6

from functiontoggler.

artginzburg avatar artginzburg commented on June 15, 2024

So I came up with a new version of the script that's working, but it has some pitfalls:

  1. Cannot run in background.
  2. Is slow.
  3. AppleScript sometimes starts doing something that I cannot explain — it slows down the whole script to like 0.2x of the intended speed, and all the code start running slower, so an already slow script gets so slow that it's unbearable to watch, and it's easier to toggle the function keys behavior manually.

You can take a look here and try to run the script: Ventura Function Toggler.applescript

Meanwhile, I think we should try a completely alternative approach — try and track if any defaults change when toggling the function keys behavior. I know for sure that it works with some other preferences, and I've used this approach in an app before. If anyone wants to help — Google on how to track defaults changes in the system and try doing it.

from functiontoggler.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.