Last active
September 16, 2020 17:13
-
-
Save jikkujose/102f497079f4f8b26427df76fb5399aa to your computer and use it in GitHub Desktop.
Apple Script JAX snippet to create an application to start Opera in private mode by default in macOS
This file contains hidden or 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
try { | |
opera = Application("Opera") | |
privateWindow = opera.Window({ mode: "incognito" }) | |
opera.windows.push(privateWindow) | |
} catch { | |
console.log("Error") | |
} | |
/* | |
How? | |
- Open Apple Script Editor | |
- Change script mode to Javascript | |
- Copy/Paste the above code | |
- Try *Run* (Play button) | |
- To create application: File > Export, then choose application | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment