I don't usually take my work laptop home each evening, but once in awhile I do, and a fraction of those times I've neglected to pack the deck the next morning because it's not part of my usual morning routine.
Here's a quick fix, using iCloud reminders, a neat (free!) app called ControlPlane and a couple of short scripts.
Get ControlPlane by using Cask:
brew cask install controlplane
Or download the binary here.
Next, modify the laptop_reminder.sh
and laptop_reminder.applescript
scripts below to use the correct iCloud reminder list and set the text and alert time of the generated reminder.
Make sure the path you supply to laptop_reminder.sh
is absolute.
ControlPlane allows you to trigger actions based on contexts. Contexts are defined by system characteristics the app refers to as "evidence sources." The plan is to create a context that goes active when ControlPlane detects you are at home, based on CoreLocation and WiFi information.
First, add a context called "Home":
Make sure "Current Location" and "Nearby WiFi Network" are enabled in evidence sources:
Create rules to activate your Home context when CoreLocation matches your home address and Nearby WiFi Network matches your home network:
Finally, create an action that will trigger laptop_reminder.sh
, which then calls laptop_reminder.applescript
when the home context activates.
That's it! ControlPlane will notify you that the action has run the next time the home context activates and a scheduled reminder will appear in Reminders.app on OS X and iOS that will alert you to pack your laptop the next day: