Even after changing the filePath variable, I am having trouble getting this to work, either as a Keyboard Maestro macro or directly through TaskPaper’s palette with the script file in the script folder.
In the case of the script file, I get the following error:
The operation couldn’t be completed. ~/[my path]/Library/Application Scripts/com.hogbaysoftware.TaskPaper3.direct/ubiquitous capture.scpt: execution error: Error: Error: Can’t convert types. (-1700)
And the Keyboard Maestro macro throws a similar error that it “Cant convert types. (-1700)”.
I assume that you don’t literally have the string[my path] in your file path ? I would normally have expected (given the tilde, with already represents the path to your home directory), to see your script installed in the folder: ~/Library/Scripts/Applications/TaskPaper/
make sure that you have copied the entire script, scrolling right down to the last line – it’s very easy to miss a line or two at the end.
This Keyboard Maestro copy seems to be working here: