
#SIDENOTES CHROME EXTENSION INSTALL#
#SIDENOTES CHROME EXTENSION HOW TO#
I wasn’t sure how to pull off the special code blocks above. "hook://sidenotes/" & idFolder & "|" & idNote Get Address use AppleScript version "2.4" Set strName to take(1, paragraphs of ((text of refNote) as string)) I managed to have success with these scripts: Get Name use AppleScript version "2.4" If menu items exist they’re certainly hidden (when it’s focused it doesn’t present a menu). 2nd class handler function lifted into 1st class script wrapper. mReturn :: First-class m => (a -> b) -> m (a -> b) Set acc to acc & (|λ|(item i of xs, i, xs)) Set strName to unwords(take(7, words of ((text of refNote) as string))) Set idFolder to id of first folder where id of its notes contains idNote Tell fldr to notes where its text = strClip Set strClip to (the clipboard as «class utf8») Then the Get Address script (which also fetches a name):ĪppleScript source for Get Address script use AppleScript version "2.4" StringByRemovingPercentEncoding)) as string (its ((NSString's stringWithString:fp)'s ¬

Set msgID to decodedPath(drop(length of "sidenotes://", "$0")) No matter the script that I write, I get ‘no linkable’ whenever I try to run Hook over the app.įor SideNotes, you will need an Open script as well as a Get Address script.įor an initial rough sketch, the pair of scripts below seems to be working on my system, though I’m sure that the Hook support staff will be able to polish some rough edges off them, and you may find that you need to adjust some of the timing delays.įirst, the Open script, assuming that we use a scheme named sidenotes:// (the final s is hidden by the field width limit in the script dialog) we could write something like:ĪppleScript source for Open script use framework "Foundation".

I tried adding support for IntelliJ IDEA. When I try to open Hook over Chrome Canary however, it still launches /Applications/Google Chrome.app as though I hadn’t made any changes to the script (which is saved and has an asterisk next to it).I tested those scripts in the Script Editor and they behave as expected (they get the URL/name from Canary).I updated the Get Name and Get URL scripts to tell application "Google Chrome Canary" instead of tell application "Google Chrome".I tried updating the Google Chrome script. What I’ve found is that both creating new and editing old scripts seems to have no impact. I’d also like it to work with my editor (IntelliJ IDEA). I’m using Hook 1.3.1 and I’m absolutely loving the concept so far (I purchased Hook Pro)! I’m excited to use it in a number of places but for me to integrate with more things, JavaScript support (and ideally if I can find it, documentation on how to use it) is a must.
