Here is an example how to use one button to trigger two different actions using apple script, variables and named triggers