I'm trying to trigger a function key using applescript. I need it to press the 'volume up' key with fn.
I wrote the following AppleScript but it isn't effective:
tell application "System Events"
key down 63 -- fn
key code 111 -- f12
key up 63
end tell
just executing key code 111
gives me the same result as the code above,
key down 63
doesn't seem to effect the behaviour of the script, the f12 key is being pressed, without the function modifier.
Is there anything like
using function down / using fn down
just like there is for the command key
using command down
or is there any other way to achieve this?