Safari: default link to gmail, open links in new tab

Discussion in 'Mac Apps and Mac App Store' started by VagabondMuse, Dec 7, 2008.

  1. VagabondMuse macrumors newbie

    Joined:
    Dec 6, 2008
    #1
    Two questions about Safari:

    First, what's the best way to set up gmail as the default mail application. Do I have to install notifier or is there another way to do it?

    Second, is there a way to make it default to opening page links in a new tab (instead of a new window)? I know I can cmd-click for a new tab but I'm a lazy cow and just want all my links to automatically go to a new tab. I'd rather cmd-click for a new window if I want it.

    Thanks,
    VM
     
  2. batchtaster macrumors 65816

    Joined:
    Mar 3, 2008
    #2
    You need to set Safari's "Open links from applications" (located in the General tab of the Preferences) to the behaviour you want. That doesn't have anything to do with the tool you use to make Gmail your mail app.

    Google Notifier is the easier way, as it registers itself as a mailto: helper. Other programs won't/can't do that, and that includes Safari.

    You can also use Fluid to create a site-specific Gmail web application. It can be registered as your mailto helper. However, your Gmail app will operate as an independent application, rather than using Safari.
     
  3. G-Com macrumors regular

    Joined:
    May 21, 2008
    Location:
    North of The 'Nati
    #3
    You can set up a Gmail account in Mail and don't use other accounts.

    To force Safari to open new tabs instead of new windows: close Safari, open Terminal, copy and paste this:

    defaults write com.apple.Safari TargetedClicksCreateTabs -bool true​

    If it gives you trouble, close Safari, open terminal, copy and paste this:

    defaults write com.apple.Safari TargetedClicksCreateTabs -bool false​
     
  4. batchtaster macrumors 65816

    Joined:
    Mar 3, 2008
    #4
    A GUI method for which is found in the General tab of the Safari Preferences.
     
  5. G-Com macrumors regular

    Joined:
    May 21, 2008
    Location:
    North of The 'Nati
    #5
    Yes, but if a link is written to normally open in a new window, it's going to open in a new window. With that code, it'll open in a new tab always.
     
  6. kolax macrumors G3

    Joined:
    Mar 20, 2007
    #6
    Awesome! *saves that to his script list*
     
  7. G-Com macrumors regular

    Joined:
    May 21, 2008
    Location:
    North of The 'Nati
    #7
    You're welcome. :)

    Edit: By the way, my main ancestry is Scots on both sides. :) My maternal grandfather (who died before I was born) was born in Edinburgh.
     
  8. VagabondMuse thread starter macrumors newbie

    Joined:
    Dec 6, 2008
    #8
    Yes, this is what I wanted. Works perfectly!
    I've installed Notifier to deal with the mailto:Gmail thing.
     

Share This Page