Planning a Mac to shut down or wake up is basically trivial, since Apple has included a simple-to-use interface inside the energy-saving preference window in OS X Preferences.
Although Apple is trying to make things easier for its users, it has neglected to provide the means to create a custom schedule, such as setting its wake-up time Mac on Monday, Wednesday, and Saturday at 8: 00 SUM, and ending it every day at 23: 00 pm
However, there are ways around this problem using the program's pmset command lineof commands. This small tool allows you to easily manipulate your Mac's power management settings, which allows you to quickly create a simple wake and shutdown based on a plan.
Most importantly, with the help of pmset you can set your Mac to turn on or off any day of the week, not just on weekdays, weekends or every day of the week, but also using a more complex system like a combination of everyday days and weekends.
The only thing you need to do before creating a new timer app for your Mac is to open a terminal window by pressing ⌘ + SPACE, open Spotlight, type “Port” and press ENTER.
Then you need to run the following command as root (to do this you need to have access to the code of Mac root) to program your Mac
sudo pmset repeat wakeorpoweron MWFU 07: 30: 00 shutdown MWRSU 22: 00: 00In the example above, we said to Mac to activate on 7: 30 am. Monday, Wednesday, Friday and Sunday, and deactivated on Monday, Wednesday, Thursday, Saturday and Sunday at 22: 00.
If you want to use a different set of days to suit your schedule, you can create a custom range of days, using for each day the corresponding symbol from the following abbreviated list:
Day | Code |
Monday | M |
Tuesday | T |
Wednesday | W |
Thursday | R |
Friday | F |
Saturday | S |
Sunday: | U |