To try a script:
Create a new test document in TaskPaper.
Then press the green “Run the Script” button to run the script.
If you decide to keep the script you should install it so that it’s easier to run.
To install a script:
Open the “Script Editor” apps preferences and make sure that “Show Script menu in menu bar” is checked.
Click on that item in your menu bar and choose “Open Scripts Folder > Open User Scripts Folder”.
Save the script that you were testing into that folder. Make sure to save using the “Script” format, it’s faster and some scripts wont work properly unless they are saved in “Script” format.
Once you’ve done this the script will be listed in the Script menu in your menu bar. To run the script just select it from that menu. You can also use tools such as FastScripts and Keyboard Maestro to setup keyboard shortcuts to launch scripts.
If the script you are trying to run still isn’t working it might be referencing a version of TaskPaper that you don’t have. Try replacing specific references such as “com.hogbaysoftware.TaskPaper3” in the script with “TaskPaper”. For example replace:
var tp3 = Application("com.hogbaysoftware.TaskPaper3")
var tp3 = Application("TaskPaper")