Sleep/Wake Mac Remotely

Discussion in 'Mac Programming' started by BlueBlood1978, Apr 24, 2014.

  1. BlueBlood1978 macrumors newbie

    Apr 24, 2014
    Lake City, MI
    tell application "System Events" sleep
    I found this snippet via search, I am looking for a way to wake up my Mac with the same idea--through email sent with a Subject of Wakeup.
  2. Cromulent macrumors 603


    Oct 2, 2006
    The Land of Hope and Glory
    Email wouldn't work since the computer needs to already be on in order to receive it.

    The only real option for remotely waking up a computer is Wake-on-LAN which is designed for exactly the purpose you are talking about. But there are some caveats to the technology. Read the article below.
  3. chown33 macrumors 604

    Aug 9, 2009
    Maybe Power Nap will work:

    First, this feature has restrictions: it's only in Mavericks, it only works on certain models, mail is only checked if it's running when the computer is slept, mail is only checked every hour, etc. If you can live with those restrictions, you might get it to work.

    Second, in addition to the restrictions on Power Nap and Mail, it's unclear to me what kind of filtering will do under Power Nap. Will it run filters? Will it run scripts attached to filters? I don't know. It may be that Mail only retrieves email without processing it through filters, or there are limitations on what the filters can do. The way to find out is to do an experiment to determine this yourself.

Share This Page