Automating quitting and launching apps.

Discussion in 'macOS' started by caspersoong, Aug 18, 2012.

  1. caspersoong macrumors 6502a

    Joined:
    Feb 27, 2011
    #1
    I use Robin and Safari interchangably. I open Robin to use less RAM for most of the time,then open Safari when I need to do serious surfing and saving of web pages. Is there a way to make Robin quit when Safari launches, and make Safari quit when Robin launches, automatically? Thanks!
     
  2. Gregg2 macrumors 603

    Joined:
    May 22, 2008
    Location:
    Milwaukee, WI
    #2
    I bet you could make Apple Scripts for each, then execute "Robin to Safari" or "Safari to Robin" instead of using their icons to launch them. By the way, this is the first time I've heard of Robin.
     
  3. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #3
    Here you go. Paste this into Applescript editor and save each as an app. Place the saved apps in your dock and click when you want to run.

    Code:
    tell application "Safari"
    	launch
    end tell
    tell application "Robin"
    	quit
    end tell
    Code:
    tell application "Robin"
    	launch
    end tell
    tell application "Safari"
    	quit
    end tell
     
  4. caspersoong thread starter macrumors 6502a

    Joined:
    Feb 27, 2011

Share This Page