App for auto sleep MAC?

Discussion in 'macOS Sierra (10.12)' started by Renecek, Jun 17, 2017.

  1. Renecek macrumors regular

    Joined:
    Jun 1, 2011
    #1
    Hello,
    I want to play some music via Spotify before I sleep and I want for example sleep MAC in 60 minutes (not every day).

    Is there any app where I can set countdown and MAC will put in sleep?

    Thank you.
     
  2. casperes1996 macrumors 68030

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #2
    Would a Terminal command be fine for you?
     
  3. Renecek thread starter macrumors regular

    Joined:
    Jun 1, 2011
    #3
    Sure but don't want it for everyday as I wrote
     
  4. casperes1996 macrumors 68030

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #4
    Type in Terminal

    "shutdown -s +[number of minutes until sleep]"

    The "-s" means 'sleep'. You can also give it an absolute time in the format yymmddhhmm. yymmdd can be omitted if it's the same day.

    It only does it once, so you'll write the command every time you want to set the timer. You can make a script if it's the same time every day so it's just a click away
     
  5. Renecek thread starter macrumors regular

    Joined:
    Jun 1, 2011
  6. casperes1996 macrumors 68030

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #6
    You're welcome :)
     

Share This Page