An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
Safari Commands
#55402 07/25/20 03:05 PM
Joined: Aug 2009
MG2009 Offline OP
OP Offline

Joined: Aug 2009
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
Re: Safari Commands
MG2009 #55426 07/26/20 03:19 PM
Joined: Aug 2009
Likes: 2
Moderator
Online
Moderator

Joined: Aug 2009
Likes: 2
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
Re: Safari Commands
joemikeb #55427 07/26/20 03:22 PM
Joined: Aug 2009
Likes: 1
Online

Joined: Aug 2009
Likes: 1
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
Re: Safari Commands
artie505 #55431 07/26/20 04:28 PM
Joined: Aug 2009
MG2009 Offline OP
OP Offline

Joined: Aug 2009
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
Re: Safari Commands
artie505 #55433 07/26/20 04:46 PM
Joined: Aug 2009
Likes: 2
Moderator
Online
Moderator

Joined: Aug 2009
Likes: 2
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
Re: Safari Commands
joemikeb #55447 07/27/20 06:44 AM
Joined: Aug 2009
Likes: 1
Online

Joined: Aug 2009
Likes: 1
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

Moderated by  alternaut, dkmarsh, joemikeb 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.3.15 Page Time: 0.011s Queries: 26 (0.007s) Memory: 0.7224 MB (Peak: 0.7920 MB) Data Comp: Zlib Server Time: 2020-09-23 20:26:15 UTC
Valid HTML 5 and Valid CSS