I maintain an AppleScript application that launches an MS-DOS emulator, and I wonder if the following is possible:
In a new MacBook Pro, I can set the touchbar to display F-keys when my application is running by adding the application to the Function Keys list in the Shortcuts pane of the Keyboard preferences. The app id seems to be saved to ~/Library/Preferences/com.apple.touchbar.agent.plist (I'm using a borrowed MacBook Pro without Xcode installed, so I have no way of seeing how that plist works).
Is there any way to write the app id and "use function keys" setting to that plist file using AppleScript or a shell script that I could run from AppleScript?
So far, I can't find any documentation for this, but maybe I'm looking in the wrong places. Thanks for any help.