Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Open URL in a new Safari window and minimize Web Browsers
I use Safari and browse with tabs. I like having everything in one window. Sometimes however, I come across a page that I am already viewing that I want to be in a separate window. So I made an Automator app to take care of it for me.

Its a simple three step app. Start with the Get Current Webpage from Safari action in the Safari library, then add the Display Webpages (also in the Safari library) action (this will open your URL in a new window), and finally, add a Run AppleScript action with this script:
on run {input, parameters}
  
  activate application "Safari"
  tell application "System Events"
    tell process "Safari"
      -- GUI Scripting statements:
      keystroke "m" using {command down}
    end tell
  end tell
  
  return input
end run
Save this as an application somewhere on your hard drive. It takes about three seconds to run the app on my G5, which I think is worth it for not cycling through a tab that I know isn't related to my current surfing activities. I also invoke the app through a trigger in Quicksilver, so that it is readily available.

The Applescript portion of the Automator app was modified from a previous hint submitted by meanbone, since I am not that great with AppleScript.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[13,746 views]  

10.4: Open URL in a new Safari window and minimize | 5 comments | Create New Account
Click here to return to the '10.4: Open URL in a new Safari window and minimize' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Open URL in a new Safari window and minimize
Authored by: Louije on Jan 19, '07 08:54:55AM

There's an easier way :

Select the page's address (cmd-L), then type cmd-opt-Enter to open the link in a background window. Then close the current tab (cmd-W), and here you are...

BTW, cmd-opt click is the combo for "open link in a new window", you can add shift if you want the new window to be the front one.

L-J



[ Reply to This | # ]
10.4: Open URL in a new Safari window and minimize
Authored by: Old Toad on Jan 19, '07 09:36:16AM

Or: Control (right)-click on the link and select Open in new window from the Contextual menu. All much quicker than the Automator/applescript routine.



[ Reply to This | # ]
10.4: Open URL in a new Safari window and minimize
Authored by: DavidRavenMoon on Jan 19, '07 10:37:50AM

Just hold down Command-Option-Shift and click the link to open it in a new window.

---
G4/Digital Audio/1GHz, 1 GB, Mac OS X 10.4.8 • www.david-schwab.com • www.myspace/davidschwab • www.imanicoppola.net



[ Reply to This | # ]
10.4: Open URL in a new Safari window and minimize
Authored by: Aquia33 on Jan 19, '07 03:56:03PM

I set my Safari General Tab preferences: "New Windows Open with: Same Page"
Then it is a simple command/n and the page opens in a new window



[ Reply to This | # ]
10.4: Open URL in a new Safari window and minimize
Authored by: graphicgeek80 on Jan 23, '07 06:00:36AM

I actually wasn't that clear in the post, but the reason I want the page to open in a new window is because I want to minimize it to the dock.

I often need to do this when I am researching something at work. When I come across something of personal interest that I opened in a tab, and that I shouldn't read now, but maybe will later when I am on break. I open it in a new window and minimize it to the dock for later reading.

I could bookmark it but I am a visual person and the window in the dock helps me remember that I wanted to view that page.



[ Reply to This | # ]