auto open 3 spearate browsers

Joined
Dec 13, 2018
Messages
4
Reaction score
0
Points
1
Hi Im new here, my question is this:
I have a mac mini and would like to know how I could open 3 separate browser windows with different urls in three separate monitors on startup?

Thank You
 
Joined
May 21, 2012
Messages
10,731
Reaction score
1,185
Points
113
Location
Rhode Island
Your Mac's Specs
M1 Mac Studio, 11" iPad Pro 3rd Gen, iPhone 13 Pro Max, Watch Series 7, AirPods Pro
When you shut down, check the box for "Reopen Windows at Login"? As long as you have all the apps open in each monitor, and they are turned on, they should open for you.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,762
Reaction score
2,100
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
You can use AppleScript, For Chrome it would be:
Code:
tell application "Google Chrome"
    activate
    make new window
    open location "https://<first site>"
    make new window
    open location "http://<second site>"
    open new window
    open location "http://<third site>"
end tell

For Safari, this would be
Code:
tell application "Safari"
    activate
    make new document with properties {URL:"https://<first site>"}
    make new document with properties {URL:"http://<second site>"}
    make new document with properties {URL:"http://<third site>"}
end tell

If you are running Firefox, we can figure out that as well. I'm not including the code to open the windows on specific monitors as that would get a little complicated, but that can be done as well if moving the windows (once opened) is a chore. As Bob suggested, once you put these windows in a specific place, clicking the Reopen setting should put them back there on each startup.
 

pigoo3

Well-known member
Staff member
Admin
Joined
May 20, 2008
Messages
44,212
Reaction score
1,423
Points
113
Location
U.S.
Your Mac's Specs
2017 15" MBP, 16gig ram, 1TB SSD, OS 10.15
I have a mac mini and would like to know how I could open 3 separate browser windows with different urls in three separate monitors on startup?

If you put the Mac-Mini to "sleep" when done with it for that session (with 3 browsers open & each browser window on a different monitor). When your wake the Mini up to use it again...everything will be as you left it.

I probably restart my computer only once every 3-4 weeks (sleep it each time I'm done with it)...so setting things up the way you want only needs to be done very infrequently.

- Nick
 
OP
M
Joined
Dec 13, 2018
Messages
4
Reaction score
0
Points
1
If you put the Mac-Mini to "sleep" when done with it for that session (with 3 browsers open & each browser window on a different monitor). When your wake the Mini up to use it again...everything will be as you left it.

I probably restart my computer only once every 3-4 weeks (sleep it each time I'm done with it)...so setting things up the way you want only needs to be done very infrequently.

- Nick
Wow thanks but the issue is that there sometimes is a power failure and that is why I need it to startup again and windows be in place, I am using chrome in full screen mode as well.
 
Joined
Jan 1, 2009
Messages
15,491
Reaction score
3,852
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 15 Pro, plus ATVs, AWatch, MacMinis (multiple)
Drag the URLs to the desktop from the address bar in Chrome. Now under System Preferences>Users & Groups, find your account, click on the lock to unlock the pane by entering an admin password, then click on Login Items and click eat "+" box below the login item windows, then a Finder window will open, navigate to the desktop and add the webloc files from those three sites. Now close System Preferences and when you log in, or when the Mac reboots, those three websites will open in the default browser. You can set that to Chrome in System Preferences>General. Now, getting those three sites to three different monitors is a bit more of a challenge. as Ashwin suggested.

Now, if this three monitor setup is really critical, get a huge Uninterruptible Power Supply and plug all of these devices into that UPS so that no power outage can force a reboot. (Don't forget the internet connection and all the routers/network devices you use to get to those three websites. And if the power draw is too large to guarantee against a long power outage, get an automatic generator that will supply power indefinitely. My house is protected by a natural gas fed generator that comes on after 10 seconds of no external power and my critical computers are all on UPS devices to cover that 10 seconds. So it's up to you how much you want to spend in time and money to guarantee those three websites are constantly being displayed.
 

pigoo3

Well-known member
Staff member
Admin
Joined
May 20, 2008
Messages
44,212
Reaction score
1,423
Points
113
Location
U.S.
Your Mac's Specs
2017 15" MBP, 16gig ram, 1TB SSD, OS 10.15
Wow thanks but the issue is that there sometimes is a power failure and that is why I need it to startup again and windows be in place, I am using chrome in full screen mode as well.

If you experience power failures frequently...I completely understand. But if the power failures happen very infrequently (once/month...once/3 months...or longer)...then doing things "fresh" after each power failure is not that hard...and sleeping the computer when done the rest of the time.:)

Of course the suggestions from other members in this thread should make things easy & more automated.:)

- Nick
 
OP
M
Joined
Dec 13, 2018
Messages
4
Reaction score
0
Points
1
You can use AppleScript, For Chrome it would be:
Code:
tell application "Google Chrome"
    activate
    make new window
    open location "https://<first site>"
    make new window
    open location "http://<second site>"
    open new window
    open location "http://<third site>"
end tell

For Safari, this would be
Code:
tell application "Safari"
    activate
    make new document with properties {URL:"https://<first site>"}
    make new document with properties {URL:"http://<second site>"}
    make new document with properties {URL:"http://<third site>"}
end tell

If you are running Firefox, we can figure out that as well. I'm not including the code to open the windows on specific monitors as that would get a little complicated, but that can be done as well if moving the windows (once opened) is a chore. As Bob suggested, once you put these windows in a specific place, clicking the Reopen setting should put them back there on each startup.

Appreciate this Raz0rEdge, I would like help with the following:
tell application "Google Chrome"
activate
make new window
open location "http://localhost:8888/d1/" -----this would be assigned to Display #1 in fullscreen
make new window
open location "http://localhost:8888/d2/" -----this would be assigned to Display #2 in fullscreen
make new window
open location "http://localhost:8888/d3/" -----this would be assigned to Display #3 in fullscreen
end tell
 
Joined
Oct 16, 2010
Messages
17,526
Reaction score
1,560
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2011 27" iMac, 1TB(partitioned) SSD, 20GB, OS X 10.11.6 El Capitan
Of course the suggestions from other members in this thread should make things easy & more automated.



Saaay... Maybe that's a job that Siri could do and one could just sit back in their chair and let her get things all setup. Maybe...??? :Mischievous:





- Patrick
======
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top