En realidad he encontrado otra solución
En primer lugar, he establecido un nuevo App Shortcut con una combinación de teclas como shift + option + F para abrir/presionar Teclas de Función en Preferencias del Sistema, y lo integré en mi script.
Aquí tiene una foto de referencia (lo siento, está en húngaro):
tell application "System Settings"
activate
end tell
delay 0.1
tell application "System Events"
tell process "System Settings"
click menu item "Billentyuzet" of menu "Nézet" of menu bar 1
end tell
end tell
delay 0.5
tell application "System Events"
click button 1 of group 2 of scroll area 1 of group 1 of group 2 of splitter group 1 of group 1 of window "Billentyuzet" of application process "System Settings"
end tell
delay 1
tell application "System Events"
keystroke "f" using {shift down, option down}
end tell
tell application "System Events"
click checkbox "Az F1, F2 stb. billentyuk használata szabványos funkciógombként" of group 1 of scroll area 1 of group 2 of splitter group 1 of group 1 of sheet 1 of window "Billentyuzet" of application process "System Settings" of application "System Events"
end tell
Sería así en inglés:
tell application "System Settings"
activate
end tell
delay 0.1
tell application "System Events"
tell process "System Settings"
click menu item "Keyboard" of menu "View" of menu bar 1
end tell
end tell
delay 0.5
tell application "System Events"
click button 1 of group 2 of scroll area 1 of group 1 of group 2 of splitter group 1 of group 1 of window "Keyboard" of application process "System Settings"
end tell
delay 1
tell application "System Events"
keystroke "f" using {shift down, option down}
end tell
tell application "System Events"
click checkbox "the exact name of the checkbox, the one with the F1, F2 etc. words in it" of group 1 of scroll area 1 of group 2 of splitter group 1 of group 1 of sheet 1 of window "Keyboard" of application process "System Settings" of application "System Events"
end tell