This script has been tested only in Mavericks. If you have applications that start at login and use the ‘cookied’ process, you might experience some unexpected behavior from those apps.

Let me exemplify: I have Mailplane enabled to open at startup and I use Gmail’s 2-step verification. If the ‘cookied’ process is stopped while Mailplane is running, the latter will not be able to access the cookies, so Google will send me an SMS with the code to authorize the computer – pretty unpleasant to have it every day.

Clearly, this situation can be avoided by just starting Mailplane after checking if ‘cookied’ has started, something that can be done fairly easy with some more AppleScript.