Hook integration scripts v. 118 now available, supporting NotePlan 2 app

Version 118 of Hook integration scripts is now available.

This release adds NotePlan 2 integration via AppleScript:

NotePlan helps you to capture important details and keep track of things at work. Manage your calendar, todos and notes in one place.

We will have a showcase blog post about using Hook with NotePlan 2.

This update also matches the Notes updates built into Hook 1.6 mentioned Friday.

How to get the updated integration

Hook’s automatic software update (if enabled) automatically updates Hook’s integration scripts without you needing to relaunch Hook. Using Hook’s Check for App Updates and Update Scripts command also updates the scripts, without needing to relaunch Hook.

We also bundle Hook’s integration scripts with the Hook installer itself, of course. Version 1.6 is next.

Thanks for the official NotePlan support! I’ve been using the following script to create new notes, but I get duplicate entries… removing any lines gets me the Hook URL error. Any thoughts?

tell application id “co.noteplan.NotePlan”
end tell
tell application “System Events” to tell process “NotePlan 3 Beta”
click menu item “New Note” of menu “File” of menu bar 1
delay 0.3
set the clipboard to “$title”
click menu item “Paste” of menu “Edit” of menu bar 1
delay 0.3
click menu item “Copy Link to Note” of menu “Note” of menu bar 1
delay 0.3
set notelink to the clipboard
set noteTitle to the clipboard
set noteTitle to text 3 thru -3 of noteTitle
set escapedTitle to do shell script "python -c “import urllib, sys; print (urllib.quote(sys.argv[1]))” " & quoted form of noteTitle
get “noteplan://x-callback-url/openNote?noteTitle=” & escapedTitle
end try
end tell

You need to give your note a title.