-
-
Save digitalbase/f95e5b1bd011b7fe4305471a61b29701 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async ()=> { | |
let url = await callBTT('get_string_variable', {variable_name:'BTT_OPENED_URL'}); | |
// this will open safari with the given URL | |
let openScript = { | |
launchPath: '/usr/bin/open', | |
parameters: '-a /Applications/Notion.app ' + url, | |
}; | |
await runShellScript(openScript); | |
returnToBTT(url); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment