Nighty activities on iMac

Discussion in 'Mac Programming' started by PaulKemp, Mar 6, 2013.

  1. PaulKemp
    Expand Collapse
    macrumors 6502

    Jun 2, 2009
    Hi all,

    I've looked into the automator earlier, but I was not able to figure this one out.

    Lets say I have a couple of applications that needs to be refreshed at a certain time of day. for example, since I only use mail on my iMac from time to time - i would like the to open each night. This way, I wouldnt have to sync 400 mail each time I opened the application. The mac is at sleep during the night, so it has to be waken up from the script as well.

    I'm thinking something like:
    tell application open
    wait 180 seconds
    tell application quit
    And some way to wake it? Any tips?
  2. Peace
    Expand Collapse
    macrumors P6


    Apr 1, 2005
    Space--The ONLY Frontier
    Not sure if this would do it but system preferences > energy saver > wake for network access.
  3. truehybridx
    Expand Collapse
    macrumors member

    Dec 6, 2010
    if i recall correctly thats meant to wake the mac when another computer on the net wants some resource it has (like file, etc)

    @Paul: i think there were some tricks you could do with Calendar where you could set up a script to run and would wake the mac if it was asleep. Depending on your version os OSX you might look into PowerNap

Share This Page