We're quite into automating things in our office and have recently discovered Applescript 

If you find yourself doing repetitive tasks on your mac - then applescript is a huge timesaver - we really recommend taking the time to learn it. 

If you do you'll most likely find yourself needing a list of keycodes for function keys (eg how do I click F5 using applescript? etc) we couldn't find a comprehensive list ourselves - so we made one! Hope you find it useful.



F1

keycode 12

F2

keycode 13

F3

keycode 15

F4

keycode 17

F5

keycode 19

F6

keycode 21

F7

keycode 23

F8

keycode 24

F9

keycode 25

F10

keycode 14

F11

keycode 8

F11

keycode 16

F12

keycode 10

F12

keycode 18

F13

keycode 32

F14

keycode 33

esc (escape)

keycode 36

1 key !

keycode 37

3 key £

keycode 39

2 key @

keycode 38

4 key $

keycode 40

5 key %

keycode 41

6 key ^

keycode 42

7 key &

keycode 43

8 key *

keycode 44

9 key ( left bracket

keycode 45

0 key ) right bracket

keycode 46


Happy apple scripting / time saving!