Fixed property decs; added AppleScript support for setting-getting document text; updated test script.
Updated text version of sample script.