This information is for TaskPaper 2 which is old and outdated. TaskPaper 3 is the current version of TaskPaper. For TaskPaper 3 support please visit the support forums.

This scripts gets the plain text representation of the current selected entries.

tell application "TaskPaper"
    tell front document
        my proccess_exported_text(export with entries selected entries)
    end tell
end tell

on proccess_exported_text(exported_text)
end proccess_exported_text