TogglePreselectedTasksAndMoveToEndOfProject

This script has been specifically designed to help people working with Mark Foster's Final Version Time Management System - see http://www.markforster.net for more information in depth, and TaskPaper Mac.

It allows to mark preselected tasks as worked on "little and often" and to automatically re-enter them at the end of the current list ( a project in TP ).

Either copy, paste & save the following first release script to a file named "Toggle Preselected Tasks and Move to End of Project.applescript" or download the Latest Version 120323-1 from the cloud.

Supporting material for FV / TP Users: Demonstration of A Day with FV and TP PDF ( 6.5 MB )

Other helpful scripts in this context are:

I do suggest to use the SHIFT-CTRL-ENTER shortcut for calling the following ( main ) script:

(*
 * Script: Toggle Preselected Tasks and Move to End of Project
 *
 * 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:
 *
 * - Toggles the preselected tasks back to notes and moves them to the end of the current project.
 *
 * Do the following to select:
 *
 * - a single entry : position the cursor anywhere on the item to move.
 * - multiple entries : double click anywhere on the first item and repeat for all others while keeping the CMD key pressed to move in one batch.
 *
 * Notice: Only TaskPaper tasks, i.e. entries starting with a dash, will be considered for action.
 *
 * History:
 *
 * - 21.03.2012: Initial release.
 *
 * Copyright (C) 2012 Stefano F. Rausch. All rights reserved.
 *)

-- Private Top Level Script Code

tell application "TaskPaper"
    tell front document

        -- Get selected entries.

        set selectedEntries to get selected entries

        -- Toggle the entry type.

        repeat with |entry| in selectedEntries
            tell |entry|

                if ( entry type is task type )
                    set entry type to note type
                    move to end of entries of container
                end if

            end tell
        end repeat

    end tell
end tell

-- End of Script

Happy Getting Things Done!

Stefano F. Rausch