I am creating an Applescript that show a dialog where the user should be able to enter either any common character (such as a
) or any special key (such as page down or ⌘). How can the latter keys/key codes be entered into a regular text field in an Applescript dialog?
MacOS – Applescript dialog – return/enter special keys (such as page down)
applescriptmacos
Related Question
- MacOS – How to make selection from AppleScript dialog list with keystroke
- MacOS – Node Program Runs in Terminal, but Not As a “do shell script” AppleScript
- IMac – Webpage Login Issues — How to Diagnose
- How to write a text in Terminal using AppleScript
- Get page number from Metadata instead of Index
- MacOS – How to send an arrow key in iTerm2
Best Answer
As promised:
Heres a list of all the possible key codes.
Common ones: