I’ve been using TaskPaper for years now (and am a big fan), but only recently tried my had at scripting it.
Setup: TaskPaper Version 3.8.16 (475) on Big Sur 11.2.3
I have the version of TP bought on the TP website (not the Mac App Store version).
The page Creating Scripts (Creating Scripts · GitBook) in the TP documentation mentions two items that I am not able to find:
The “TaskPaper’s JavaScript Context” section mentions:
In the TaskPaper JavaScript context:
… (5) Your can use TaskPaper’s Window > JavaScript Debugger to debug your script.
=> However in my setup, there is no JavaScript Debugger menu item under TP’s Window menu
The “Debugging TaskPaper’s JavaScript Context” section mentions:
Choose Safari > Develop > Computer > TaskPaper > BirchOutlineJavascriptContext
=> However I don’t see TaskPaper or BirchOutline under MyComputer
I’ve already followed the steps in Safari to show the Developer Menu. And I have Safari and TP, both open at the same time.
Due to this, I am having problems getting any further with scripting TaskPaper.
Happy to have any help with this. Thanks.
I just testing and seems not to work for me either. I expect some combination of notarization, hardened runtime, security measures must have broken things. I’ll see if I can find a fix.
Any update on this?
I’m also trying to setup a debugging environment.
Switched from App Store to Website version and followed the guide instructions.
Still Taskpaper is not showing up in Safari Develop Tab.
Okay I got the inspector open and connected to Debuggable JSContext. But only ofter running the script once with the Debugger and running the code multiple times.
The Code from @complexpoint executes but I get a Error: Can’t convert types
And I can’t manage to console.log() anything.