Home
Posted By: MG2009 Safari Commands - 07/25/20 03:05 PM
Two things:

1. Does anyone know how to have SAFARI open always in PRIVATE VIEW?

2. Similarly, when I click on a webloc icon in Finder to open (using right click), the Contextual Menu shows the option to "open with", as usual, but no option to open with Safari "private."

Anyone know how to set Safari to open in PRIVATE by default in these two situations?
Posted By: joemikeb Re: Safari Commands - 07/26/20 03:19 PM
1. Safari Preferences > General > Safari opens with: A new private window

2. You will need to create an AppleScript/JavaScript/Workflow to perform the action then a third-party app such as Service Station to add it to the context menu.
Posted By: artie505 Re: Safari Commands - 07/26/20 03:22 PM
Wouldn't MG2009 be best off with an AppleScript (or other) saved as an app/login item to have Safari open with a new private window by default?
Posted By: MG2009 Re: Safari Commands - 07/26/20 04:28 PM
Thanks, Guys.

1. Set the SAFARI preferences. No problem there.

2. How do I do a "script" for the contextual menu? (Never have done one before.)
Posted By: joemikeb Re: Safari Commands - 07/26/20 04:46 PM
Originally Posted By: artie505
Wouldn't MG2009 be best off with an AppleScript (or other) saved as an app/login item to have Safari open with a new private window by default?

In which scenario? In his first scenario nothing is needed other than changing a preference setting in Safari to achieve his goal.

In the second scenario the OP specified having the alternative in the "open with" context menu item. I retrospect the AppleScript (or whatever) could be linked to file type Webloc and would then appear automatically and the app I suggested would not be necessary. I just thought it would add an element of control to how and where the option would be available. In either case the trick would be writing the AppleScript and whether or not opening a Private Window is scriptable.

BAD NEWS: I just checked the Safari script dictionary and there is no option for opening a page in a Private Window. 😡 Automator is even less helpful. 🤬 I don't know if it would be possible in JavaScript or not. 🤷‍♂️ Now I am thinking in terms of a combination of AppleScript and JavaScript, if someone has the time and knowledge to suss it out.
Posted By: artie505 Re: Safari Commands - 07/27/20 06:44 AM
Originally Posted By: joemikeb
Originally Posted By: artie505
Wouldn't MG2009 be best off with an AppleScript (or other) saved as an app/login item to have Safari open with a new private window by default?

In which scenario? In his first scenario nothing is needed other than changing a preference setting in Safari to achieve his goal.

My bad! I totally missed the Safari pref.
© FineTunedMac