An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Topic Options
#55402 - 07/25/20 08:05 AM Safari Commands
MG2009 Offline


Registered: 08/05/09
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?
_________________________
Many thanks,
MG2009

Top
#55426 - 07/26/20 08:19 AM Re: Safari Commands [Re: MG2009]
joemikeb Online

Moderator

Registered: 08/04/09
Loc: Fort Worth, Texas
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.
_________________________
joemikeb • moderator

Top
#55427 - 07/26/20 08:22 AM Re: Safari Commands [Re: joemikeb]
artie505 Online


Registered: 08/04/09
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?
_________________________
The new Great Equalizer is the SEND button.

In Memory Of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire

Top
#55431 - 07/26/20 09:28 AM Re: Safari Commands [Re: artie505]
MG2009 Offline


Registered: 08/05/09
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.)
_________________________
Many thanks,
MG2009

Top
#55433 - 07/26/20 09:46 AM Re: Safari Commands [Re: artie505]
joemikeb Online

Moderator

Registered: 08/04/09
Loc: Fort Worth, Texas
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.
_________________________
joemikeb • moderator

Top
#55447 - 07/26/20 11:44 PM Re: Safari Commands [Re: joemikeb]
artie505 Online


Registered: 08/04/09
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.
_________________________
The new Great Equalizer is the SEND button.

In Memory Of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire

Top

Moderator:  alternaut, dkmarsh, joemikeb