I've been a smoker for 7 years and day after day my need to quit grows. Need, not desire and breaking an habit unwillingly is hard, specially when it entangles your brain and runs through your veins. I tried to just quit on the spot and it created a monster unable to achieve any result on a regular day, after 72 hours without a cigarette I was behaving as you'd expect from a crack addict.
I'm ashamed, but I keep trying and being aware of how many cigarettes I smoke daily warns me I went too far. By the end of the day it is not just another smoke, it is the 18th cigarette and that's alarming. I built a system around Tally to keep me in line, every time I light a cigarette, I pull the Today widget and add one to the counter, but there is still more to it.
Being able to interact with the Notification Center is one of the greatest achievements for productivity on iOS, unfortunately, Apple has been stubborn to allow it to reach its peak and fear for rejection spread amongst app developers. Previously, I would get my iPhone, unlock it, open Launch Center Pro from my dock and trigger an action on Tally, but now I can pull the screen down and tap once to increment my counter. The progress on how we interact with our devices is remarkable, despite Apple's overreaction.
Yet, the system does slightly more, using Launch Center Pro I can schedule an action by the end of the day to collect, store and reset Tally's information. I name the tally
Cigarettes and I schedule the following action on Launch Center Pro to notify me 1 minute past midnight every day:
I'll take a paragraph to dump my wrath upon the
retParam parameter, it is also used by Terminology and Clean Links to designate a parameter in the next chained app into which the value will be attached. The problem with
retParam is that it demands an extra action if you want to customize this text afterwards. Since Drafts can't call itself, I appeal to Workflow to handle the text on my behalf.
| Date | Cigarettes | |:-----|:----------:|
You'll need the UUID for this draft afterwards. UUID is an unique identifier, every draft has its own and you can grab it with this helpful action from the Drafts Action Directory. With the UUID in your clipboard, return to Workflow and paste the value in the Draft UUID field for the Add to Drafts action at the bottom of the workflow.
If you missed any beat on this system, throughout the day, whenever you light a cigarette, pull down the notification center and increment the Cigarettes tally from Tally's Today widget. At 1 minute after midnight, Launch Center Pro will notify you to run an action to collect the value from the Cigarettes tally and send it to Workflow which will format the date for the previous day. The output is appended to a document in Drafts as a MultiMarkdown table and, afterwards, restarts the tally to start the day from scratch.
This workflow shows how well a Today Widget can serve your daily needs and also how chaining apps for your actions is yet not irrelevant. Most important is to point out how iOS automation can help you improve your life, it is here for you after all, so wish me luck and if I get cranky on Twitter, give me a heads up, I won't be on my best days and any help is welcome.