SET FUNCTION example
The following example changes the F8 key to the string "modify command ". Without the semicolon at the end, you type the name of the file you want to edit and press Enter:
set function f8 to "modify command "