Handling mailto: links via the Did Open URL trigger —
I have already configured a browser picker for URLs so I can choose whether to open in my home/work/test profiles across various browsers, and I wanted to do the same for mailto links.
I duplicated my configuration from my default Did Open: * handler, set up a new Floating Menu, modified it to catch mailto:*, and… nothing. It gets focus on launch, but the trigger doesn't fire, and no actions run.
Set the default mailto handler on startup (this works fine):
[
{
"BTTLastUpdatedAt" : 1792020023.7238588,
"BTTTriggerType" : 641,
"BTTTriggerTypeDescriptionReadOnly" : "After BetterTouchTool did Launch / Start on Mac with Serial Number",
"BTTTriggerClass" : "BTTTriggerTypeOtherTriggers",
"BTTUUID" : "94FE170D-EA5C-48A0-A4E6-99587C717689",
"BTTOrder" : 0,
"BTTActionsToExecute" : [
{
"BTTLastUpdatedAt" : 1792019515.712065,
"BTTTriggerParentUUID" : "94FE170D-EA5C-48A0-A4E6-99587C717689",
"BTTIsPureAction" : true,
"BTTUUID" : "E8E2840D-5B8B-47D9-8DE6-893512B2A11F",
"BTTPredefinedActionType" : 492,
"BTTPredefinedActionName" : "Change Default Browser or App For Scheme Or File Type",
"BTTAdditionalActionData" : {
"BTTActionChangeDefaultBrowserApp" : {
"BTTFormButtonDisplay" : "BetterTouchTool",
"BTTFormButtonResult" : "/Applications/BetterTouchTool.app"
},
"BTTActionChangeDefaultBrowserUTI" : "mailto://"
},
"BTTOrder" : 30
}
],
"BTTTriggerConfig" : {
"BTTHUDText" : "Setting default browser"
},
"BTTTriggerLauncherConfig" : {
"BTTLauncherShowInLauncher" : 0
}
}
]
Verified with:
$ plutil -p ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist | grep -A 2 -B 2 "LSHandlerURLScheme" | grep -B1 mailto
"LSHandlerRoleAll" => "com.hegenberg.bettertouchtool"
"LSHandlerURLScheme" => "mailto"
Trigger and actions: (these don't run)
[
{
"BTTLastUpdatedAt" : 1792021383.2101688,
"BTTTriggerConditionsFormatReadOnly" : "TRUEPREDICATE",
"BTTTriggerConditionsData" : "YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMSAAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwPVSRudWxs0Q0OViRjbGFzc4AC0hAREhNaJGNsYXNzbmFtZVgkY2xhc3Nlc18QD05TVHJ1ZVByZWRpY2F0ZaMUFRZfEA9OU1RydWVQcmVkaWNhdGVbTlNQcmVkaWNhdGVYTlNPYmplY3QIERokKTI3SUxRU1ddYGdpbnmClJiqtgAAAAAAAAEBAAAAAAAAABcAAAAAAAAAAAAAAAAAAAC_",
"BTTTriggerType" : 682,
"BTTTriggerTypeDescriptionReadOnly" : "Did Open: mailto:*",
"BTTTriggerClass" : "BTTTriggerTypeOtherTriggers",
"BTTUUID" : "61A5B270-D092-466F-BA57-E2E89E207A7C",
"BTTDidOpenURLAdress" : "mailto:*",
"BTTOrder" : 2,
"BTTActionsToExecute" : [
{
"BTTLastUpdatedAt" : 1792020268.1141839,
"BTTTriggerParentUUID" : "61A5B270-D092-466F-BA57-E2E89E207A7C",
"BTTIsPureAction" : true,
"BTTUUID" : "58C185C4-2346-42A9-B850-B4502C2B40F4",
"BTTPredefinedActionType" : 254,
"BTTPredefinedActionName" : "Show HUD Overlay",
"BTTAdditionalActionData" : {
"BTTActionHUDBlur" : true,
"BTTActionHUDBackground" : "rgba(0.000000,0.000000,0.000000, 0.000000)",
"BTTIconConfigImageHeight" : 100,
"BTTActionHUDPosition" : 0,
"BTTActionHUDDetail" : "",
"BTTActionHUDDuration" : 3,
"BTTActionHUDDisplayToUse" : 0,
"BTTIconConfigImageWidth" : 100,
"BTTActionHUDSlideDirection" : 0,
"BTTActionHUDHideWhenOtherHUDAppears" : false,
"BTTActionHUDWidth" : 500,
"BTTActionHUDAttributedTitle" : "{\\rtf1\\ansi\\ansicpg1252\\cocoartf2908\n\\cocoatextscaling0\\cocoaplatform0{\\fonttbl\\f0\\fswiss\\fcharset0 Helvetica-Bold;}\n{\\colortbl;\\red255\\green255\\blue255;\\red0\\green0\\blue0;}\n{\\*\\expandedcolortbl;;\\cssrgb\\c0\\c0\\c0\\c84706\\cname labelColor;}\n\\pard\\tx560\\tx1120\\tx1680\\tx2240\\tx2800\\tx3360\\tx3920\\tx4480\\tx5040\\tx5600\\tx6160\\tx6720\\pardirnatural\\qc\\partightenfactor0\n\n\\f0\\b\\fs80 \\cf2 Opened mailto\\\n\\pard\\tx560\\tx1120\\tx1680\\tx2240\\tx2800\\tx3360\\tx3920\\tx4480\\tx5040\\tx5600\\tx6160\\tx6720\\sl0\\slmaximum500\\pardirnatural\\qc\\partightenfactor0\n\n\\fs20 \\cf0 \\{BTT_OPENED_URL\\} from app\\\n\\{BTT_OPENED_URL_FROM_APP\\}}",
"BTTActionHUDBorderWidth" : 0,
"BTTActionHUDTitle" : "",
"BTTIconConfigIconType" : 1,
"BTTActionHUDHeight" : 500
},
"BTTHUDActionConfiguration" : "{\"BTTActionHUDBlur\":true,\"BTTActionHUDBackground\":\"rgba(0.000000,0.000000,0.000000, 0.000000)\",\"BTTIconConfigImageHeight\":100,\"BTTActionHUDPosition\":0,\"BTTActionHUDDetail\":\"\",\"BTTActionHUDDuration\":3,\"BTTActionHUDDisplayToUse\":0,\"BTTIconConfigImageWidth\":100,\"BTTActionHUDSlideDirection\":0,\"BTTActionHUDHideWhenOtherHUDAppears\":false,\"BTTActionHUDWidth\":500,\"BTTActionHUDAttributedTitle\":\"{\\\\rtf1\\\\ansi\\\\ansicpg1252\\\\cocoartf2908\\n\\\\cocoatextscaling0\\\\cocoaplatform0{\\\\fonttbl\\\\f0\\\\fswiss\\\\fcharset0 Helvetica-Bold;}\\n{\\\\colortbl;\\\\red255\\\\green255\\\\blue255;\\\\red0\\\\green0\\\\blue0;}\\n{\\\\*\\\\expandedcolortbl;;\\\\cssrgb\\\\c0\\\\c0\\\\c0\\\\c84706\\\\cname labelColor;}\\n\\\\pard\\\\tx560\\\\tx1120\\\\tx1680\\\\tx2240\\\\tx2800\\\\tx3360\\\\tx3920\\\\tx4480\\\\tx5040\\\\tx5600\\\\tx6160\\\\tx6720\\\\pardirnatural\\\\qc\\\\partightenfactor0\\n\\n\\\\f0\\\\b\\\\fs80 \\\\cf2 Opened mailto\\\\\\n\\\\pard\\\\tx560\\\\tx1120\\\\tx1680\\\\tx2240\\\\tx2800\\\\tx3360\\\\tx3920\\\\tx4480\\\\tx5040\\\\tx5600\\\\tx6160\\\\tx6720\\\\sl0\\\\slmaximum500\\\\pardirnatural\\\\qc\\\\partightenfactor0\\n\\n\\\\fs20 \\\\cf0 \\\\{BTT_OPENED_URL\\\\} from app\\\\\\n\\\\{BTT_OPENED_URL_FROM_APP\\\\}}\",\"BTTActionHUDBorderWidth\":0,\"BTTActionHUDTitle\":\"\",\"BTTIconConfigIconType\":1,\"BTTActionHUDHeight\":500}",
"BTTOrder" : 1
},
{
"BTTLastUpdatedAt" : 1792020256.0868969,
"BTTTriggerParentUUID" : "61A5B270-D092-466F-BA57-E2E89E207A7C",
"BTTIsPureAction" : true,
"BTTUUID" : "3FCCBDAD-DFA8-42CA-95A9-3F85613959F8",
"BTTPredefinedActionType" : 386,
"BTTPredefinedActionName" : "Show Floating Menu",
"BTTAdditionalActionData" : {
"BTTMenuActionMenuID" : "MailerSelection",
"BTTMenuActionRestorePosition" : true
},
"BTTOrder" : 2
}
],
"BTTTriggerLauncherConfig" : {
"BTTLauncherShowInLauncher" : 0
}
}
]
Send the URL to BTT: (Attempted with both mailto: and mailto://)
% open -b com.hegenberg.bettertouchtool --url "mailto:me@example.com"
Logs on activation register the app focus change (and then me tabbing back to my shell):
2026/10/14 16:52:22:060|ASL|finished merging floating menus in 0.000976s|
2026/10/14 16:52:22:070|ASL|app: com.hegenberg.BetterTouchTool|
2026/10/14 16:52:22:076|ASL|📮 BTTFloatingMenuCenter: Posted app changed notification for embedded menus|
2026/10/14 16:52:22:225|ASL|finished merging floating menus in 0.000635s|
2026/10/14 16:52:22:227|ASL|app changed com.hegenberg.BetterTouchTool 813714742.226765|
2026/10/14 16:52:22:331|ASL|finished merging floating menus in 0.000744s|
2026/10/14 16:52:22:331|ASL|start reload 813714742.330517|
2026/10/14 16:52:22:331|ASL|FLOATING_MENU_UPDATE: Menu C442A840-AF39-415E-ABA2-A8BFB2AF531B is NOT visible, loading with 6 items|
2026/10/14 16:52:22:331|SWIFT|load 0 2.0265579223632812e-06|
2026/10/14 16:52:22:331|SWIFT|load 1 4.100799560546875e-05|
2026/10/14 16:52:22:335|SWIFT|load 3 0.004278063774108887|
2026/10/14 16:52:22:335|SWIFT|load 4 0.004363059997558594|
2026/10/14 16:52:22:340|SWIFT|load 5 0.009410977363586426|
2026/10/14 16:52:22:340|SWIFT|load 6 0.009832978248596191|
2026/10/14 16:52:22:341|ASL|FLOATING_MENU_UPDATE: Menu CA52776A-7F5C-40AE-9C8C-AF58494E592F is NOT visible, loading with 3 items|
2026/10/14 16:52:23:422|ASL|save|
2026/10/14 16:52:23:422|SHORTCUT|SHORTCUT FETCH DISABLE 1|
2026/10/14 16:52:23:481|ASL|finished merging floating menus in 0.001440s|
2026/10/14 16:52:23:489|ASL|app: com.googlecode.iterm2|
2026/10/14 16:52:23:490|ASL|📮 BTTFloatingMenuCenter: Posted app changed notification for embedded menus|
2026/10/14 16:52:23:622|ASL|finished merging floating menus in 0.000712s|
2026/10/14 16:52:23:623|ASL|app changed com.googlecode.iterm2 813714743.623354|
2026/10/14 16:52:23:728|ASL|finished merging floating menus in 0.000719s|
2026/10/14 16:52:23:728|ASL|start reload 813714743.727945|
2026/10/14 16:52:23:728|ASL|FLOATING_MENU_UPDATE: Menu C442A840-AF39-415E-ABA2-A8BFB2AF531B is NOT visible, loading with 6 items|
2026/10/14 16:52:23:728|SWIFT|load 0 3.933906555175781e-06|
2026/10/14 16:52:23:728|SWIFT|load 1 3.898143768310547e-05|
2026/10/14 16:52:23:732|SWIFT|load 3 0.004356980323791504|
2026/10/14 16:52:23:732|SWIFT|load 4 0.004440903663635254|
2026/10/14 16:52:23:738|SWIFT|load 5 0.009521961212158203|
2026/10/14 16:52:23:738|SWIFT|load 6 0.010033011436462402|
2026/10/14 16:52:23:738|ASL|FLOATING_MENU_UPDATE: Menu CA52776A-7F5C-40AE-9C8C-AF58494E592F is NOT visible, loading with 3 items|
Whereas a regular URL triggers all actions: (Same trigger, just changed URL to * and launched with http://localhost)
2026/10/14 17:02:38:445|ASL|finished merging floating menus in 0.000730s|
2026/10/14 17:02:38:449|ASL|app: com.hegenberg.BetterTouchTool|
2026/10/14 17:02:38:458|ASL|📮 BTTFloatingMenuCenter: Posted app changed notification for embedded menus|
2026/10/14 17:02:38:599|ASL|app changed com.hegenberg.BetterTouchTool 813715358.598507|
2026/10/14 17:02:38:653|ASL|performing 254|
2026/10/14 17:02:38:653|ASL|triggering action Show HUD Overlay - 58C185C4-2346-42A9-B850-B4502C2B40F4|
2026/10/14 17:02:38:653|ASL|performing 386|
2026/10/14 17:02:38:653|ASL|triggering action Show Floating Menu - 3FCCBDAD-DFA8-42CA-95A9-3F85613959F8|
2026/10/14 17:02:38:653|ASL|not triggering reply again|
2026/10/14 17:02:38:689|ASL|re4|
2026/10/14 17:02:38:693|ASL|finished merging floating menus in 0.000623s|
2026/10/14 17:02:38:725|ASL|finished merging floating menus in 0.000580s|
2026/10/14 17:02:38:725|ASL|start reload 813715358.725241|
2026/10/14 17:02:38:725|ASL|FLOATING_MENU_UPDATE: Menu C442A840-AF39-415E-ABA2-A8BFB2AF531B is NOT visible, loading with 6 items|
2026/10/14 17:02:38:725|SWIFT|load 0 9.5367431640625e-07|
2026/10/14 17:02:38:725|SWIFT|load 1 2.6941299438476562e-05|
2026/10/14 17:02:38:729|SWIFT|load 3 0.003744959831237793|
2026/10/14 17:02:38:729|SWIFT|load 4 0.003815889358520508|
2026/10/14 17:02:38:734|SWIFT|load 5 0.009093999862670898|
2026/10/14 17:02:38:734|SWIFT|load 6 0.009137988090515137|
2026/10/14 17:02:38:735|ASL|FLOATING_MENU_UPDATE: Menu CA52776A-7F5C-40AE-9C8C-AF58494E592F is visible (visible=YES), checking if modified|
2026/10/14 17:02:38:826|SWIFT|appear2|
2026/10/14 17:02:38:946|ASL|finished merging floating menus in 0.000725s|
2026/10/14 17:02:40:265|SWIFT|dis3|
2026/10/14 17:02:40:266|SWI|APPS EQUAL|
2026/10/14 17:02:40:270|SWIFT|disappear2|
2026/10/14 17:02:42:037|SWI|PID MISMATCH FIX|
2026/10/14 17:02:42:043|ASL|finished merging floating menus in 0.002233s|
2026/10/14 17:02:42:055|ASL|app: com.googlecode.iterm2|
2026/10/14 17:02:42:058|ASL|📮 BTTFloatingMenuCenter: Posted app changed notification for embedded menus|
2026/10/14 17:02:42:134|ASL|finished merging floating menus in 0.000597s|
2026/10/14 17:02:42:135|ASL|app changed com.googlecode.iterm2 813715362.135190|
2026/10/14 17:02:42:240|ASL|finished merging floating menus in 0.000621s|
2026/10/14 17:02:42:240|ASL|start reload 813715362.239641|
2026/10/14 17:02:42:240|ASL|FLOATING_MENU_UPDATE: Menu C442A840-AF39-415E-ABA2-A8BFB2AF531B is NOT visible, loading with 6 items|
2026/10/14 17:02:42:240|SWIFT|load 0 9.5367431640625e-07|
2026/10/14 17:02:42:240|SWIFT|load 1 4.100799560546875e-05|
2026/10/14 17:02:42:244|SWIFT|load 3 0.003930926322937012|
2026/10/14 17:02:42:244|SWIFT|load 4 0.004027009010314941|
2026/10/14 17:02:42:249|SWIFT|load 5 0.009233951568603516|
2026/10/14 17:02:42:249|SWIFT|load 6 0.009670019149780273|
2026/10/14 17:02:42:249|ASL|FLOATING_MENU_UPDATE: Menu CA52776A-7F5C-40AE-9C8C-AF58494E592F is NOT visible, loading with 3 items|
2026/10/14 17:02:42:249|SWIFT|load 0 1.4066696166992188e-05|
2026/10/14 17:02:42:250|SWIFT|load 1 4.601478576660156e-05|
2026/10/14 17:02:42:252|SWIFT|load 3 0.0021740198135375977|
2026/10/14 17:02:42:252|SWIFT|load 4 0.0022510290145874023|
2026/10/14 17:02:42:252|SWIFT|load 5 0.0027320384979248047|
2026/10/14 17:02:42:252|SWIFT|load 6 0.002758026123046875|```