# Hook \<\> Spark Email Integration

**URL:** <https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239>\
**Category:** Discussion & Help\
**Created:** [November 24, 2020, 4:56am UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239 "2020-11-24T04:56:30Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![zendude](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/z/85e7bf/32.png) [@zendude](https://discourse.hookproductivity.com/u/zendude)\
**Post date:** [November 24, 2020, 4:56am UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/1 "2020-11-24T04:56:30Z")

</div>

Hi All

Just thought I’d contribute to this wonderful forum

If anyone is interested, you can add “Spark” to hook preferences \> scripts, and then…

on Get Name tab

![image](https://discourse.hookproductivity.com/uploads/default/original/2X/c/cd58beb27ff8fe34650467fca2b0cafe4582ce81.png)

On Get Address tab

![image](https://discourse.hookproductivity.com/uploads/default/original/2X/2/269e45c4c9134cd009ebfaa1fed542f0275bf7a2.png)

If you were to invoke hook to copy a message in Spark, you’d get this

![image](https://discourse.hookproductivity.com/uploads/default/original/2X/3/398e198d9dfc4f517e5cd8fcf98e409ea981247e.png)

Found the basis for this Applescript in one of the Macsparky forums and repurposed it. Can’t recall it where exactly… but thanks to whoever it was

Regards  
Ken

---

<div class="post-metadata">

**Author:** ![Chris](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@Chris](https://discourse.hookproductivity.com/u/Chris)\
**Post date:** [November 25, 2020, 10:01pm UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/2 "2020-11-25T22:01:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![zendude](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/z/85e7bf/32.png) [@zendude](https://discourse.hookproductivity.com/u/zendude)\
**Post date:** [November 25, 2020, 11:05pm UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/3 "2020-11-25T23:05:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kennonb](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/kennonb/32/1197_2.png) [@kennonb](https://discourse.hookproductivity.com/u/kennonb)\
**Post date:** [November 25, 2020, 11:52pm UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/4 "2020-11-25T23:52:42Z")

</div>

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

```auto
tell application "Spark"
	if HasSelectedMessage then
		set theResult to GetSelectedMessageTitle
		return theResult
	end if
end tell

```

### Get Address

```auto
tell application "Spark"
	if HasSelectedMessage then
		set theResult to GetSelectedMessageBacklink
		return theResult
	end if
end tell

```

---

<div class="post-metadata">

**Author:** ![Chris](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@Chris](https://discourse.hookproductivity.com/u/Chris)\
**Post date:** [November 26, 2020, 6:15pm UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/5 "2020-11-26T18:15:13Z")

</div>

This works beautifully! Thanks.

Must a Big Sur thing.

---

<div class="post-metadata">

**Author:** ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)\
**Post date:** [November 27, 2020, 6:31am UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/6 "2020-11-27T06:31:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pug](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/p/51bf81/32.png) [@pug](https://discourse.hookproductivity.com/u/pug)\
**Post date:** [November 30, 2020, 11:29am UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/7 "2020-11-30T11:29:40Z")

</div>

This is absolutely brilliant!  
Thank you, getting Spark to work with Hook has been on my wish list for a while.

---

<div class="post-metadata">

**Author:** ![switters](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@switters](https://discourse.hookproductivity.com/u/switters)\
**Post date:** [November 30, 2020, 1:43pm UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/8 "2020-11-30T13:43:24Z")

</div>

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:

“404: NOT\_FOUND  
Code: NOT\_FOUND  
ID: sfo1::rfzp5-1606743779321-5a5ff6ae1ee5”

Anyone know why this is happening?

---

<div class="post-metadata">

**Author:** ![switters](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@switters](https://discourse.hookproductivity.com/u/switters)\
**Post date:** [November 30, 2020, 9:55pm UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/9 "2020-11-30T21:55:13Z")

</div>

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.)

[Here is the Roam forum thread](https://forum.roamresearch.com/t/best-way-to-get-info-from-email-into-roam/2898/9).

---

<div class="post-metadata">

**Author:** ![Chris](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@Chris](https://discourse.hookproductivity.com/u/Chris)\
**Post date:** [December 1, 2020, 1:44am UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/10 "2020-12-01T01:44:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![josh](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/josh/32/512_2.png) [@josh](https://discourse.hookproductivity.com/u/josh)\
**Post date:** [December 30, 2020, 1:46am UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/11 "2020-12-30T01:46:40Z")

</div>

This isn’t working for me, I wonder if Spark stopped supporting it? Or did I enter something wrong?  
 ![CleanShot 2020-12-29 at 18.46.17@2x](https://discourse.hookproductivity.com/uploads/default/original/2X/0/0a5f39c00d90961765108cb3f7f38f4af50a1a90.png)

---

<div class="post-metadata">

**Author:** ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)\
**Post date:** [December 30, 2020, 5:59am UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/12 "2020-12-30T05:59:59Z")

</div>

Hi @josh. That looks different from the script we recently added in [Hook integration scripts v.146 now available — Spark by Readdle and Mailplane - Releases - Hook Productivity Forum](https://discourse.hookproductivity.com/t/hook-integration-scripts-v-146-now-available-spark-by-readdle-and-mailplane/2485)

---

<div class="post-metadata">

**Author:** ![josh](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/josh/32/512_2.png) [@josh](https://discourse.hookproductivity.com/u/josh)\
**Post date:** [December 31, 2020, 5:11am UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/13 "2020-12-31T05:11:03Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![jaketempchin](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/j/ce73a5/32.png) [@jaketempchin](https://discourse.hookproductivity.com/u/jaketempchin)\
**Post date:** [March 5, 2021, 8:54pm UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/14 "2021-03-05T20:54:00Z")

</div>

Neither are working for me. Is anyone else having issues? I have the most updated Spark and Hook and Mac OS.

---

<div class="post-metadata">

**Author:** ![Conejo23](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/c/13edae/32.png) [@Conejo23](https://discourse.hookproductivity.com/u/Conejo23)\
**Post date:** [March 24, 2021, 12:42am UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/15 "2021-03-24T00:42:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)\
**Post date:** [March 24, 2021, 12:59am UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/16 "2021-03-24T00:59:42Z")

</div>

Welcome to the Hook Productivity Forum , @Conejo23 . As noted elsewhere, Spark is not a [reliably linkable mail app](https://hookproductivity.com/help/integration/data-linkability-and-why-it-matters/). 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.

---

<div class="post-metadata">

**Author:** ![Conejo23](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/c/13edae/32.png) [@Conejo23](https://discourse.hookproductivity.com/u/Conejo23)\
**Post date:** [March 29, 2021, 1:08am UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/17 "2021-03-29T01:08:14Z")

</div>

thank you for this reply!

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](http://www.egoscue.com/austin-tx)

Follow us on Facebook Follow us on Twitter

![93B6E311B99C4CD7B013DD82A2BC8FD0.gif](https://discourse.hookproductivity.com/uploads/default/original/2X/2/2192f18a0c02aa69fa103095e22fde7b00acc5b1.gif)

---

<div class="post-metadata">

**Author:** ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)\
**Post date:** [March 29, 2021, 7:48pm UTC](https://discourse.hookproductivity.com/t/hook-spark-email-integration/2239/18 "2021-03-29T19:48:46Z")

</div>

> [@Conejo23](#):
>
> it feels like there’s so much more here and I don’t know how to get my arms around it.

correct. there’s lots more to it than that.

> [@Conejo23](#):
>
> Do you guys have any videos or articles showing some common use cases?

here are [Hook App Videos – Hook](https://hookproductivity.com/help/general/videos/), and [Benefits of Using Hook – Hook](https://hookproductivity.com/benefits).

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.

There’s also [How to Turn a TaskPaper File into a Project Information Hub – Hook](https://hookproductivity.com/blog/2020/05/how-to-turn-a-taskpaper-file-into-a-project-information-hub/), which is also pertinent to OmniFocus. I think the video shows OmniFocus, and in any event you can use OmniFocus as a project hub without using TaskPaper.

The `Hook to New` feature is super helpful for taking notes about any item (PDF, web page, etc.) in the app of your choice.

A slogan of Hook is “One app, infinite applications” because its commands open up a huge number of new types of workflows.
