# Mailplane integration scripts

**URL:** <https://discourse.hookproductivity.com/t/mailplane-integration-scripts/578>\
**Category:** Share Hookmark automation\
**Created:** [July 20, 2019, 1:53am UTC](https://discourse.hookproductivity.com/t/mailplane-integration-scripts/578 "2019-07-20T01:53:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhm2k](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/rhm2k/32/121_2.png) [@rhm2k](https://discourse.hookproductivity.com/u/rhm2k)\
**Post date:** [July 20, 2019, 1:53am UTC](https://discourse.hookproductivity.com/t/mailplane-integration-scripts/578/1 "2019-07-20T01:53:30Z")

</div>

[Mailplane](https://mailplaneapp.com/) is my preferred client for G Suite’s Gmail, Calendar and Contacts.

After recently discovering Hook, and some initial experimentation, I have hacked together integration scripts for use of Mailplane’s email. Because Gmail is the only portion of the app available to scripting, this does NOT work for Calendar events nor for Contacts.

What IS pleasing, is that Mailplane’s organization is such that the URL generated by their _currentURL_ and _currentTitle_ have made it quite simple to establish Hook linkages to any email in any of my different Gmail accounts, and that is worth a lot to me.

This is still a work-in-progress. Please note that in order to create a Hook linkage from Mailplane, the email (or email thread) of choice must be in the front window.

Note: **Open Item** requires no script, since the URL returned by the **Get Address** script is handled natively by macOS.

#### Get Name

```auto
tell application "Mailplane"
	set meg to currentTitle
	return meg
end tell

```

#### Get Address

```auto
tell application "Mailplane"
	launch
	set meg to currentURL
	return meg
end tell

```

---

<div class="post-metadata">

**Author:** ![tonywatkins](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/tonywatkins/32/1372_2.png) [@tonywatkins](https://discourse.hookproductivity.com/u/tonywatkins)\
**Post date:** [June 25, 2020, 2:44pm UTC](https://discourse.hookproductivity.com/t/mailplane-integration-scripts/578/2 "2020-06-25T14:44:38Z")

</div>

Excellent. Thanks. I’m trying Hook for the first time today and I was concerned that Mailplane was going to be a major sticking point for me.

---

<div class="post-metadata">

**Author:** ![bradsukala](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/bradsukala/32/1313_2.png) [@bradsukala](https://discourse.hookproductivity.com/u/bradsukala)\
**Post date:** [December 14, 2020, 1:24pm UTC](https://discourse.hookproductivity.com/t/mailplane-integration-scripts/578/3 "2020-12-14T13:24:32Z")

</div>

Thanks @rhm2k! Mailplane is a big part of my daily work and I’m happy to see these scripts here.
