macOS: Sequoia (15.7.3)
BetterTouchTool: 6.167
Full Disk acces set, why is this preset not working?
exported_triggers.bttpreset (836 Bytes)
macOS: Sequoia (15.7.3)
BetterTouchTool: 6.167
Full Disk acces set, why is this preset not working?
exported_triggers.bttpreset (836 Bytes)
It seems to work fine here, however note that there will always be a significant delay with this (2-5s)
Did you restart BTT after granting full disk access?
Disk acces setting was done long ago and still valid. Does it only watches for macOS notifications(tested now with terminal notifier and works), not for app/browser ones?
if the browser shows them via Apple's notification framework (so they show up in control center) that should work fine
They show up in the notification center. But not in the clipboard(via the BTT trigger)
I just tested via Safari, it seems to work ok here.
Note: your preset always puts "notification text" into the clipboard, so the text would always be the same. Is this intentional?
I'm using Helium(Chromium based) browser. No fixed text is not intentional, I want the notification text in the clipboard
Then try this instead:
exported_triggers.bttpreset (2.4 KB)
It runs this java script to access the notification body and set it to clipboard:
async function copyNotificationToClipboard() {
let notificationsString = await get_string_variable("BTTLastShownMacOSUserNotifications");
let notificationsJSON = JSON.parse(notificationsString);
let lastNotification = notificationsJSON[0];
let body = lastNotification["body"];
await set_clipboard_content({content:body, format: 'NSPasteboardTypeString'})
return notificationsJSON;
}
Works great, Thanks !![]()