DanTorrence Posted September 27, 2023 Share Posted September 27, 2023 Hello, Now that MacOS Sonoma is released to the public, I'm wondering if there's a way to open specific safari profiles in MacOS Sonoma using Alfred? Right now I have two safari profiles, one for personal and one for work. If I have both profiles open at the same time and I minimize both windows, then I type "safari" after triggering Alfred, it'll just open the one that I last minimized. Is there a way to specify which safari profile I want to open and expand that window? Not sure if this makes sense, but please provide any information that might be helpful, thank you! Link to comment
vitor Posted September 27, 2023 Share Posted September 27, 2023 Apple has not provided an API to programatically interact with Safari profiles, so at the moment that is not possible. Only Apple can change that. You can use the Feedback Assistant app on your Mac to let them know that is something you want. Example title: “Support interacting with Safari profiles via AppleScript”. DanTorrence 1 Link to comment
Pa7trickStar Posted October 23, 2023 Share Posted October 23, 2023 maybe you could create a workflow which uses key combos to change the profile in the meantime... Something like a List Filter as trigger (which has to be populated manually since Safari offering an api) to select the profile. Then you could use a keyboard combo to open a new window in the given profile. With ⌘ + ⌥ + ⇧ + <number> where 0 is your personal profile and 1 to x are the other profiles you can open a new window in a specific profile. Maybe looking at something like the OpenIn app (haven't tested it myself) might help too. Link to comment
smagdali Posted October 30, 2023 Share Posted October 30, 2023 I was looking at the 'keyboard combo' example above for this, but couldn't work out (or find via google) how to send the combo to Safari specifically rather than to MacOS at large. Is that possible.? Link to comment
vitor Posted October 30, 2023 Share Posted October 30, 2023 @smagdali Use a Launch Apps and Files Action to bring Safari to the front and then have the shortcut fire. Link to comment
smagdali Posted November 1, 2023 Share Posted November 1, 2023 That worked! I'd like to refine it to switch to the open tab instead of always opening a new window but it's a start. It's here if others want to take a look https://www.dropbox.com/scl/fi/7i690pedbnqyqvvhs9e6i/Open-Safari-window-in-specific-Profile.alfredworkflow?rlkey=9gdoh1wrrkvoogs4zpck882yr&dl=0 ironfruit 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now