<Action> <Selection>

SCRIPT {
    if _arg1 = "Cut" then key$ = "{Ctrl+x}"
    if _arg1 = "Copy" then key$ = "{Ctrl+c}"
    if _arg1 = "Bold" then key$ = "{Ctrl+b}"
    if _arg1 = "Italicize" then key$ = "{Ctrl+i}"
    if _arg1 = "Underline" then key$ = "{Ctrl+u}"
    if _arg1 = "Center" then key$ = "{Ctrl+e}"
    if _arg1 = "Left Align" then key$ = "{Ctrl+l}"
    if _arg1 = "Right Align" then key$ = "{Ctrl+r}"
    if _arg1 = "Delete" then key$ = "{Del}"
    if _arg1 = "Restore" then key$ = "{Alt+o}f{Alt+y}Regular{Enter}"
    if _arg2 = "That" then SendKeys "{Ctrl+t}"
    SendKeys key$
    if _arg2 = "That" then SendKeys "{Shift+Ctrl+r}"
}