Need help with Automator

Discussion in 'OS X El Capitan (10.11)' started by iExplorer, Dec 21, 2015.

Tags:
  1. iExplorer macrumors newbie

    iExplorer

    Joined:
    Dec 21, 2015
    #1
    I want to use Automator to automatically close an application(if that application is open) when I click on Shut Down and then proceed to Shut Down.Is it possible?
     
  2. Lunder89 macrumors regular

    Lunder89

    Joined:
    Oct 16, 2014
    Location:
    Denmark
    #2
    You can't run an automator action when shutting down your mac. But you can run a script inside automator to shut down your mac.
    Create a new automator workflow, and use the action "Quit application" and select the application you want quitted. Then find the script action, and insert this:

    tell application "Finder"

    shut down

    end tell

    Save it all as an application. Run that application, to shut down the application, and turn off your Mac (I haven't tested the script, since I didn't want to shut down my mac at the time of writing this, but multiple sources recommends this :) )
     
  3. iExplorer thread starter macrumors newbie

    iExplorer

    Joined:
    Dec 21, 2015
    #3
    Thanks! Works like a charm! I was also wondering if I could assign a keyboard shortcut to this application? Would be super-useful.
     
  4. Lunder89 macrumors regular

    Lunder89

    Joined:
    Oct 16, 2014
    Location:
    Denmark
    #4

Share This Page