Hook for Side Notes?

Is there any way to get Hook working with Side Notes? SideNotes – Quick Notes on Screen Side – Apptorium

1 Like

This would be a great addition indeed. I quickly looked into the scripting possibilities of the app, but I think the developer of SideNotes needs to add some more support to make this work.

1 Like

I created a script for SideNotes, it seems to work ok. It’s an example of how to use it, because SideNotes uses folders to organise notes, you may want to change the default folder in the New Item script.
Also the Get Address script has a static title, I have not been able to retrieve the title of the current note, so this will need some work.

Get address script:
tell application “SideNotes”
set current_note to current note
set note_id to id of current_note
set note_title to “Note in SideNotes”
set note_url to “sidenotes://open/” & note_id
return “[” & note_title & “](” & note_url & “)”
end tell

New item script:
tell application “SideNotes”
set f to first folder where name is “Quick Notes”
set note_title to “$title”
set note_text to “# $title
$user_link”
set new_note to make new note in f with properties {text:note_text}
set note_url to “sidenotes:///open/” & id of new_note
set note_id to id of new_note
open with id note_id
end tell
note_url


2 Likes

thanks for sharing! For now users could use “Rename” in Title menu or linked items menu to rename.

1 Like

I also contacted the developer and he has put the request on his todo list. He thinks it is already possible to make this work.

1 Like