Does my Mac need to be awake for Job to run??

Discussion in 'Mac Programming' started by jbsmithmac, Feb 15, 2014.

  1. jbsmithmac macrumors regular

    Joined:
    Sep 11, 2011
    #1
    Hi,
    Just as the title suggests, I'm planning on having iCal run an automator script early in the morning...so my question is, if my mac is set to sleep after 15 min will it wake up at the scheduled time to run the script?
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
    Maybe.

    You didn't identify your OS version or your Mac model, and power nap is only available for certain models and OS versions (see linked article). I suggest the simplest way to find out is to try it and see what happens.

    If you don't want to test using your actual Automator script, make a test Automator script that does something definite and recognizable, such as creating a file or folder. Then look for that file or folder later, after it should have run.
     
  3. jbsmithmac thread starter macrumors regular

    Joined:
    Sep 11, 2011
    #3
    I'm testing it now....but it's a late 2009 mini, running 10.8 - so no PowerNap.
     
  4. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #4
    Then it almost certainly won't wake to run the script.

    In my years of experience with Macs, "power nap" is the first time an automatically scheduled wakeup feature has been provided. Before that feature, a wakeup could be scheduled, but it had to be done manually.

    The two ways I know of to schedule a wakeup are:
    1. System Preferences > Energy Saver > Schedule button
    2. The 'pmset' shell command (pmset schedule or pmset repeat).
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/pmset.1.html
     
  5. jbsmithmac thread starter macrumors regular

    Joined:
    Sep 11, 2011
    #5
    Thanks for confirming....I half assumed I'd have to wake the machine then run the script.
     

Share This Page