Skip to content

Instantly share code, notes, and snippets.

@digitalbase
Created October 20, 2022 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalbase/0d0cd9395f061e14ca91ec2ebb14fbf1 to your computer and use it in GitHub Desktop.
Save digitalbase/0d0cd9395f061e14ca91ec2ebb14fbf1 to your computer and use it in GitHub Desktop.
(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/Linear.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