# Integration with BetterTouchTool

**URL:** https://discourse.hookproductivity.com/t/integration-with-bettertouchtool/7575
**Category:** Hookmark Feature Requests
**Created:** [January 27, 2024, 7:24pm UTC](https://discourse.hookproductivity.com/t/integration-with-bettertouchtool/7575 "2024-01-27T19:24:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Heikau](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/h/ea5d25/32.png) [@Heikau](https://discourse.hookproductivity.com/u/Heikau)
#### Post date: [January 27, 2024, 7:24pm UTC](https://discourse.hookproductivity.com/t/integration-with-bettertouchtool/7575/1 "2024-01-27T19:24:10Z")

</div>

Similar to KeyboardMaestro and the Apple Shortcuts App, I would like to be able to link triggers and trigger groups in BTT for later documentation. Therefore, I am currently working on creating the integration scripts.

While BTT provides some scripting identification options (Name, UUID, custom URL Scheme), I am struggling to implement this in the corresponding script. I would be grateful for any assistance. Here is a link to the BTT documentation for reference: [https://docs.folivora.ai/docs/1103\_custom\_url\_scheme.html](https://docs.folivora.ai/docs/1103_custom_url_scheme.html)

---

<div class="post-metadata">

### Author: ![bchend](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/b/dbc845/32.png) [@bchend](https://discourse.hookproductivity.com/u/bchend)
#### Post date: [January 27, 2024, 9:32pm UTC](https://discourse.hookproductivity.com/t/integration-with-bettertouchtool/7575/2 "2024-01-27T21:32:45Z")

</div>

Thank you for this feature request, @Heikau .

We will have a look.

Thank you

---

<div class="post-metadata">

### Author: ![bchend](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/b/dbc845/32.png) [@bchend](https://discourse.hookproductivity.com/u/bchend)
#### Post date: [January 31, 2024, 5:52pm UTC](https://discourse.hookproductivity.com/t/integration-with-bettertouchtool/7575/3 "2024-01-31T17:52:54Z")

</div>

I can’t find the URL for opening the trigger for editing. I am not familiar with BTT so I post a question here:

> **[What's the url for a trigger that can be used to open this trigger in...](https://community.folivora.ai/t/whats-the-url-for-a-trigger-that-can-be-used-to-open-this-trigger-in-bettertouchtool/35506)**
>
> I am new to BetterTouchTool. It is very cool. I am trying to figure out the url link for a trigger, which can be used to open the trigger in BetterTouchTool, but not execute it. I just checked this page: ...

If you are OK with a URL with execute\_assigned\_actions\_for\_trigger (or you can change it to other available actions), here is the script you can use. Just copy and paste it in Get Address pane for BetterTouchTool.

> **Get Address Script**
>
> ```auto
> use scripting additions
> use framework "Foundation"
> 
> try
> 	
> set the clipboard to ""
> 	
> tell application "System Events" to tell process "BetterTouchTool"
> keystroke "c" using {command down}
> delay 0.1
> repeat 10 times -- poll clipboard for ~1 seconds. Sometimes set x to the clipboard throws exception
> try
> set selItems to the clipboard
> if selItems is not equal to "" then
> exit repeat
> end if
> 				
> end try
> delay 0.1
> end repeat
> 		
> 		
> end tell
> 	
> set str to current application's NSString's stringWithString:(selItems)
> set theData to str's dataUsingEncoding:(current application's NSUTF8StringEncoding)
> 	
> set {res, theErr} to current application's NSJSONSerialization's JSONObjectWithData:theData options:0 |error|:(reference)
> 	
> if res is missing value then error (theErr's localizedDescription() as text) number -10000
> set aList to res as list
> set theUID to BTTUUID of item 1 of aList
> set theTitle to BTTTouchBarButtonName of item 1 of aList
> 	
> return "[" & theTitle & "](" & "btt://execute_assigned_actions_for_trigger/?uuid=" & theUID & ")"
> end try
> 
> ```
