Skip to content

Instantly share code, notes, and snippets.

@jikkujose
Last active September 16, 2020 17:13
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 jikkujose/102f497079f4f8b26427df76fb5399aa to your computer and use it in GitHub Desktop.
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
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