Help make macro: Safari 1. New tab group + 2. Switch btw profiles

Heya! I’m trying to figure out a shortcut/make a macro for 1. Safari → File → New tab group with “x” tabs

Framework: Sometimes this macbook is connected to one additional monitor or 2, varies.

Issue: When connecting macbook to +1 monitor/s, the mouse is not clicking where I assigned it to on my main macbook window, so the proportions go out of wack.

Previous attempts:

Previous Attempt: Tried the “click at found image” rather than “move and click” but no luck.

  1. Switch btw profiles, I like those and create a bunch like “workspaces - hobbies, work, random, etc.”. Safari has the option to create profiles. Safari → settings → Profiles.

The usual shortcut to swittch is: command + shift + option + [0-9].

Framework: I created more than 10, and for those there is no shortcut. So, the usual is click on the “profile” icon on safari → drag mouse to “new window” → “New [workspace] window”. like this:

image

Note: Each workspace has different background colors, so even a little more complicated to switch out of the usual 10. .

Previous attempts:

Tried the “at found image” but it is still not working.

Resource used: https://www.youtube.com/watch?v=reXNfWQMiNU

ty!

If you want to automate selecting a menu item, use the "Select or Show a Menu Item" Action.

The problem here is that the menu item varies -- the solution is that it always start with "New Tab Group with" and that's enough to uniquely identify it, so we can use a regular expression:

I don't use Profiles, but the option you show appears to be a button -- so use the "Press a Button" Action instead of trying to find it as an image. On my Sequoia machine it comes up as below -- use the "Button" dropdown to scan the front window of Safari and see what you get.

Once the menu has popped you can type in enough of the required menu item to highlight it the press Return to select. So for me to make a new Test window from

...I can:

(The small pauses give the menu a chance to appear before typing, then the item to be selected before hitting Return.)

1 Like

oh my gods, ty so muchhhh! It worked :smiley: