Skip to content

Instantly share code, notes, and snippets.

@krabs-github
Last active December 20, 2021 12:39
Show Gist options
  • Save krabs-github/1825509d7f5bc66c1c726e811ee0a36b to your computer and use it in GitHub Desktop.
Save krabs-github/1825509d7f5bc66c1c726e811ee0a36b to your computer and use it in GitHub Desktop.
[MacOS bring window to front] MacOS bring window to front #Discord
  • Create an AppleScript as follows (e.g., in /Users/[username]/activate_chrome.scpt:
tell application "Google Chrome"
    reopen
    activate
end tell

Use the Stream Deck "System" > "Open" action with the following in the "App/File" Field:

osascript /Users/<username>/activate_chrome.scpt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment