automation - How to run a script in OSX first thing every morning AND directly after login / unlock? -
i've researched thing quite time haven't found solution, time ask wisdom of crowd...
here's i'm trying achieve: on workdays, first thing greets me when log in (with macbook coming standby mode , not booting up), want start script shut down windows , open daily planning list. if have not opened mac few days, should not execute multiple times. script doesn't matter here, couldn't find reliable solution execution hook anywhere.
i've dabbled automator , read through tasks already:
programmatically run @ startup on mac os x? running script upon login mac
but see somehow related login items, seem aren't executed when coming standby.
i'm open solution, preferably commandline or baked in (launchd etc.), app.
thanks in advance,
dom
i have thought have bunch of answers now. concept of "workday" needs bit of definition. if talking m-f, or whatever, consider running script every day, determines day of week , nothing on non-workdays. know python? if so, write program runs every day (or constantly), , keep track of last day did something. can set action whatever constitutes workday - including holidays, , let want.
you same in shell programming language - bash, ksh, etc.
applescript might workable of things want. novice @ applescript make specific suggestions - bit awkward programming language imo.
Comments
Post a Comment