# Hookmark Shortcut and AppleScript for Craft fail

**URL:** https://discourse.hookproductivity.com/t/hookmark-shortcut-and-applescript-for-craft-fail/7220
**Category:** Bug Reports
**Created:** [October 6, 2023, 10:40am UTC](https://discourse.hookproductivity.com/t/hookmark-shortcut-and-applescript-for-craft-fail/7220 "2023-10-06T10:40:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![realCrush](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/r/c68b51/32.png) [@realCrush](https://discourse.hookproductivity.com/u/realCrush)
#### Post date: [October 6, 2023, 10:40am UTC](https://discourse.hookproductivity.com/t/hookmark-shortcut-and-applescript-for-craft-fail/7220/1 "2023-10-06T10:40:14Z")

</div>

After testing, when I try to use the Apple Shortcut to obtain the Hookmark link of a page in the **Craft app** , the Shortcut command cannot run properly. Below is a screenshot of the Shortcut I wrote. When I use the Raycast plugin that depends on Hookmark ([Raycast Store: Hookmark Search](https://www.raycast.com/QIanGua/search-hookmark)), it is also almost impossible to perform any operations on the Craft app. Can you fix this bug?

Note: my Hookmark is from **Setapp** and the latest version

 ![image](https://discourse.hookproductivity.com/uploads/default/original/2X/7/720b0eef65fc98722643a9fa77ef31049ae8f9ed.jpeg)

---

<div class="post-metadata">

### Author: ![bchend](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/b/dbc845/32.png) [@bchend](https://discourse.hookproductivity.com/u/bchend)
#### Post date: [October 6, 2023, 4:08pm UTC](https://discourse.hookproductivity.com/t/hookmark-shortcut-and-applescript-for-craft-fail/7220/2 "2023-10-06T16:08:51Z")

</div>

Sorry about this issue.

### Get Bookmark From Active Window

Returns a complex object containing either a valid bookmark _or_ a request handle, _and_ a value indicating the type of result that is returned.The two step-process is required for apps that use asynchronous protocols (like x-callback-url) for inter-app communication. Example: [Agenda](https://agenda.com/), [Craft](https://www.craft.do/), [Drafts](https://getdrafts.com/), and [Obsidian](https://obsidian.md/). For more information, please see

> **[Shortcuts Actions – Hookmark](https://hookproductivity.com/help/automation/shortcuts/#gbfaw)**
>
> You can automate Hookmark using Apple’s Shortcuts app. Hookmark has an extensive list of actions with which you can copy links to the active window, add bookmarks to Hookmark, focus on a given bookmark, hook bookmarks together, and get your...

Here is a sample Shortcut which get a bookmark from active window and open it in Hookmar window:

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

Thank you

---

<div class="post-metadata">

### Author: ![realCrush](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/r/c68b51/32.png) [@realCrush](https://discourse.hookproductivity.com/u/realCrush)
#### Post date: [October 8, 2023, 7:06am UTC](https://discourse.hookproductivity.com/t/hookmark-shortcut-and-applescript-for-craft-fail/7220/3 "2023-10-08T07:06:06Z")

</div>

Thanks! Your Shorcut works for Craft
