SafelyQuitTaskPaper

The reason for writing this script is the fact that Dropbox is currently not supporting a merging functionality. People have reported having / having had issues with data inconsistency while switching between the Mac and the Touch version.

Instead of manually saving all open documents, closing all open windows and quitting TaskPaper, to make sure that the Dropbox synchronisation does work flawlessly, you can use the script detailed out below. To make things even better, I do suggest that you do use the CMD-Q shortcut for this script - overriding the standard command.

Either copy, paste & save the following first release script to a file named "Safely Quit TaskPaper.applescript" or download the Latest Version 120611-1 from the cloud.

Keep your data safe!

(*
 * Script: Safely Quit TaskPaper
 *
 * Version: 120321-1
 *
 * This script does target TaskPaper for Mac (C) Hog Bay Software: www.hogbaysoftware.com/products/taskpaper.
 *
 * The following main features have been implemented and / or enhanced:
 *
 * - Saving all open documents.
 * - Closing all open windows.
 * - Quitting TaskPaper
 *
 * Notice: The reason for writing this script is the fact that Dropbox is currently not supporting a merging functionality. People have reported having / having had issues with data inconsistency while switching between the Mac and the Touch version. To make sure that this problem does not happen to you, please do follow the following suggestions:
 *
 * - Never do work in parallel on .taskpaper files!
 * - Give Dropbox a few seconds to really update the files on the server, before using the alternative TaskPaper version.
 * - Make sure that you do quit TaskPaper Touch and that you do remove the application from the multi-task bar, before launching TaskPaper Mac.
 *
 * History:
 *
 * - 21.03.2012: Initial release.
 *
 * Copyright (C) 2012 Stefano F. Rausch. All rights reserved.
 *)

-- Private Top Level Script Code

tell application "TaskPaper"
    save documents
    close windows
    quit
end tell

-- End of Script

Happy Getting Things Done!

Stefano F. Rausch