Mac OS X Automation with AppleScript

by Peter Jones / August 27, 2009

User Interface Scripting

Nice introduction to UI scripting with AppleScript.

Key Code Table

Key Name Key Code
F1 122
F2 120
F3 99
F4 118
F5 96
F6 97
F7 98
F8 100
F9 101
F10 109
F11 103
F12 111
F13 105
F14 107
F15 113
Delete (Backspace) 51
Return 36
Home 115
Page Up 116
Page Down 121
Delete (Forward Delete) 117
Up Arrow 126
Down Arrow 125
Left Arrow 123
Right Arrow 124
Clear 71
Enter (Keypad) 76

Tags: macosx applescript