Safari - Toggle Items off and On

This is for Safari 12. I need to know how to do three things:

  1. Make a macro that will allow me to toggle Private Browsing on and off. (This option is found in the Preferences, General Tab, under Safari opens with: A New Private Window; or A New Window)

  2. Make another macro that will allow me to toggle Disable/Enable Extensions (found in the Develop Menu) on and off.

  3. At some point I will probably need another that will combine the above 2 - in other words to turn off Private Browsing and Disable Extensions; and then later do the reverse, turn both of those items back on.

Hey @Tomas,

Why go to the trouble when the options are easily available?

File > New Window              N

File > New Private Window  N

Select or Show a Menu Item action with a regular expression.

You can do something like this:

Safari -- Enable-Disable a Extensions in Develop Menu.kmmacros (6.4 KB)

-Chris

December 20, 2018

Hi Christpher:

Many thanks for the Safari extension disable macro. I had forgotten about the 2 Safari commands for Private vs non-Private windows – I’ll see if I can remember to use them. :wink:

On an unrelated note – is there a way to send messages ONLY to the person you are talking to? I notice that all responses (even via email) get posted on the forum pages, and many times my replies are not exactly relevant to the world at large…

Take care,

T

Hi Christopher - Once again many thanks for the Safari Extension Enable/Disable macro - it works great.

There is only one minor detail - the message it returns always says "DISABLED" regardless of the actual state of the menu. I have tried changing the "is enabled" parameter to the other options, to no avail. Is there a way to get the message to work properly?

  • T

Hey Tomas,

Hmm. I thought I'd checked for correctness of the notification...

Oh, well. Here's a fixed version of the macro (v1.01).

-Chris


Safari -- Enable-Disable a Extensions in Develop Menu v1.01.kmmacros (6.4 KB)

Chris -

The new version is perfect. A million thanks!

T