When I created the 2Do script I used the AppleScript
open location urlToOpen which worked fine, but when I created the Obsidian script and used the same it failed to execute that line — it worked fine in Script Editor, just not in Hook.
I had to change the line to:
set myScript to "open " & quoted form of urlToOpen do shell script myScript
…which I had seen in one of the default scripts. This fixed my problem.
Does anyone know why
open location sometimes doesn’t work in Hook?