running and troubleshooting a trigger

If I create a trigger consisting of many actions:

  • if there any simple way to run the trigger to see if all is working correctly.
  • are there any BTT actions specifically meant to debug a trigger (ie series of actions) ?
  • thank you

Hi @lucas222 ,

There's a "Play" button at the bottom of the Actions configuration panel that will run the entire Action sequence for a Trigger.

When a Trigger has multiple assigned Actions and need to run just one of those Actions, you can right click on the Action you want to run and select one of the options:

Option 1:

  1. Select "Copy Selected Item UUID".
  2. Open your preferred terminal application and run this command:
    osascript -e 'tell application "BetterTouchTool" to execute_assigned_actions_for_trigger "PASTE UUID OF ACTION HERE"'

Option 2:

  1. Select "Copy Java Script to Trigger Action" or "Copy Apple Script to Trigger Action".
  2. Open the "Script Editor" application (and set the Language to JavaScript if you selected the JS option above).
  3. Paste the code from your clipboard and run the script.

Option 3:

  1. Select "Copy Java Script to Trigger Action" or "Copy Apple Script to Trigger Action"
  2. Run the scripts directly in your terminal using osascript -e (add -l JavaScript if you selected the JS code option). Note: Make sure you handle line breaks appropriately for this option.

1 Like

thank you for a clear, extensive and all around brilliant answer !

1 Like