Skip to content

Instantly share code, notes, and snippets.

View kemar's full-sized avatar

Marc Hertzog kemar

View GitHub Profile
@kemar
kemar / toggle_function_keys.scpt
Created May 28, 2023 13:17
AppleScript pour commuter "Utiliser les touches F1, F2 etc. comme des touches de fonction standard" dans Réglages Système (Ventura)
-- osascript toggle_function_keys.scpt
-- Inspired by https://github.com/MrSimonC/Toggle-Mac-Function-Keys
open location "x-apple.systempreferences:com.apple.Keyboard-Settings.extension"
tell application "System Settings"
reveal anchor "FunctionKeys" of pane id "com.apple.Keyboard-Settings.extension"
end tell
tell application "System Events" to tell process "System Settings"
@kemar
kemar / toggle_function_keys.scpt
Last active December 18, 2021 19:14
AppleScript pour commuter "Utiliser les touches F1, F2 etc. comme des touches de fonction standard" dans Preferences Système.
-- osascript toggle_function_keys.scpt
-- Inspired by https://gist.github.com/alampros/2b81af6cfc564f6accd3
tell application "System Preferences"
reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard"
end tell
tell application "System Events" to tell process "System Preferences"
set checkbox_target to false