I’ve entered the scripts as you recommended, but I get “No Linkable item found” when invoking Hook with a message selected in the Spark Inbox. Hook 2.0.3
btw, I tried executing the AppleScript in the script editor, but neither returned anything useful. I’m on Big Sur, Spark v2.9.10.755. On which versions did this work for you?
Hi Chris. I’m using Spark 2.9.9.750 and I’m on Catalina 10.15.7 and also on Hook 2.0.3. I don’t know why it’s not working for you. Maybe someone else who tried and got it to work can comment
Ok I’m not sure why this is working for me, but this is what I’m currently using and it appears to work. I’m on Big Sur with Spark v2.9.11 and Hook 2.0.3.
Get Name
tell application "Spark"
if HasSelectedMessage then
set theResult to GetSelectedMessageTitle
return theResult
end if
end tell
Get Address
tell application "Spark"
if HasSelectedMessage then
set theResult to GetSelectedMessageBacklink
return theResult
end if
end tell
super! Last time we checked Spark didn’t have AppleScript support. Great they’ve added it.
The URLs would only work with other Spark clients (i.e., if you send it to someone who does that Spark, it wouldn’t work). If GetSelectedMessageBacklink is RFC5322 (email) compatible, we could construct a hook://email client URL that is compatible with other mail clients. However, the advantage of this link format is that it can already be used on iOS.
I haven’t it tried it yet. If someone could send us a few sample spark URLs we would have a look before digging into Spark itself and its documentation.
This is amazing! I found out about Hook when I posted a question on the Roam Research forums about how to get emails into Roam. Someone recommended Hook, I came here and found that there is an integration with Spark but it lacks automation. Then I saw this thread!
I added the script code to Hook. I invoked Hook on an email, copied the link, then tried pasting the link in the URL window of Safari. That prompted me to open Spark and I did see the email. I also tried pasting the link in TextEdit. That worked fine too.
But, when I paste the link into Roam Research, it doesn’t work. If I just paste the link directly into a Roam note, I see this syntax: Day V: Inline Calculator, where “Day V: Inline Calculator” is the subject line of the email. If I use “Command-k” to turn some text in Roam into this link, Roam does create a hyperlink. But when I click on the hyperlink, I get this error message:
I’ve been discussing this on the Roam forum as well. One of the mods there downloaded Hook app, installed the Spark script, and tried copying and pasting a link. It worked just fine for him. He asked if this might be a Big Sur issue? (He’s not running Big Sur.)
If you read further back in this thread, you can see there are two versions of the scripts. One seems to work with pre-big sur, and the second with big sur. At least, that’s worked for me.
Yes, you’re correct sorry! I must’ve accidentally unchecked auto-updates, because I was running an older version on both my macs. After updating, everything works as expected. Thank you!
I just installed Hook. Running latest version of Big Sur, when I link an email from Spark into Omnifocus it appears to work but if I click on the link, instead of getting the linked email I get an error message: “Spark couldn’t open the message because a back link is corrupted.”
Is this fixable? I’d REALLY like to get Spark and Hook working together. I can just use the native functionality of Spark to move it into Omnifocus but the way it navigates through Hook into Spark is just a little cleaner.
Welcome to the Hook Productivity Forum , @Conejo23 . As noted elsewhere, Spark is not a reliably linkable mail app. At best, Hook gets the link from Spark. Have you compared the link returned by Hook with the link returned by Spark through its user interface?
If Readle one day decides to add automation to get links to their software objects, we will gladly use it. Until then we recommend using a different email app, or manually copying links through Readle apps’ UI, and feeding into Hook (Or any other workflow) from there.
Once you’ve copied any URL, you can ‘hook it’ Hook to Copied Link. You can edit the name from there. We will add bells and whistles to the Hook UI, and additional goodies ( AppleScript and helper apps), to facilitate processing of arbitrary URLs and links. Hook is a link processing virtual machine.
Do you guys have any videos or articles showing some common use cases? I’ve heard about using it to connect to Roam (which I’m just learning) but I don’t see the advantage beyond just copying the link the regular way.
So far I’m using Hook to turn websites into tasks in OmniFocus where I have that link in the notes. OF used to do that itself but that stopped working awhile back and this helps me connect Brave Browser to OF beautifully, but it feels like there’s so much more here and I don’t know how to get my arms around it. Any tutorial videos?
Rick Mathes | Owner, Egoscue of Austin
THE EGOSCUE METHOD® | Relieve Chronic Pain + Increase Functional Mobility
phone 512-527-0030 www.egoscue.com/austin-tx
A recent addition to Hook (Hook 2.0) is automatic bookmarking and search of Hook bookmarks, which is shown in one of the videos and described in help pages, but is worthy of more attention on the web.