Get a list of available named triggers

In 4.026 alpha this would get you all named triggers. This only really works when using Java Script for Automation, because standard Apple Script does not handled JSON well and BTT can only return the data as JSON.

let BetterTouchTool = Application('BetterTouchTool');
let allNamedTriggersJSONString = BetterTouchTool.get_triggers({trigger_id: 643});
let allTriggersJSONArray = JSON.parse(allNamedTriggersJSONString);

let allNamedTriggerNames = [];
for(let trigger of allTriggersJSONArray) {
	allNamedTriggerNames.push(trigger["BTTTriggerName"]);
}

allNamedTriggerNames

The get_triggers() function supports these parameters (all optional):
• trigger_type (e.g. BTTTriggerTypeMagicMouse)
• trigger_id (e.g. 643 for named triggers)
• trigger_parent_uuid (if you want to get the items of a folder)
• trigger_uuid (to get a specific trigger)
• trigger_app_bundle_identifier (to get triggers assigned to a specific app)

The same parameters are now also available on a new function called "delete_triggers()"

//edit: Apple's notary service is currently down, will release the alpha once it's working again