Sleep/Wake Mac Remotely

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

  1. BlueBlood1978 macrumors newbie

    Joined:
    Apr 24, 2014
    Location:
    Lake City, MI
    #1
    Code:
    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

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    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.

    http://en.wikipedia.org/wiki/Wake-on-LAN
     
  3. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #3
    Maybe Power Nap will work:
    http://support.apple.com/kb/ht5394

    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 Mail.app 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