Running actions depending on context?

Discussion in 'Mac Apps and Mac App Store' started by MarceFX, Apr 24, 2015.

  1. MarceFX macrumors member

    Joined:
    Sep 23, 2006
    Location:
    Graná (Spain)
    #1
    Hi,

    I'm looking for an app that easily (no scripting, please) lets me run actions depending on conditions like:

    - If an ethernet cable is plugged in THEN turn off WiFi and run TimeMachine
    - If an external screen is attached THEN turn on Bluetooth and...

    Any suggestions? Thanks!
     
  2. 0d085d macrumors regular

    Joined:
    Apr 23, 2015
    #2
    Assuming what you want is for an action to happen automatically when ethernet is plugged in etc.

    EventScripts is on the App Store and allows you to run actions when certain things happen. The list of supported events isn't enormous though, so you may have to be creative.

    If you create an Automator routine (all drag and drop - no coding!) and save it as an app, then all you'll need is a one line shell script to launch from EventScripts:

    Code:
    /absolute/path/to/automator/script.app
    I don't know if it's possible to do anything more specific without either bash, Applescript or Python. From a quick Google, PyMacAdmin looks like a contender for Python based event dispatching.

    The "proper" way to do this (afaik) is to create a daemon. Your script can then run periodically and check if your conditions are true.
     
  3. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #3
    http://www.controlplaneapp.com

    Take a look at the app Control Plane.
     
  4. MarceFX thread starter macrumors member

    Joined:
    Sep 23, 2006
    Location:
    Graná (Spain)
    #4
    Thanks! Both apps look great. I'll give them a try :)
     

Share This Page