# Linking to the Application, not a document in the application

**URL:** https://discourse.hookproductivity.com/t/linking-to-the-application-not-a-document-in-the-application/585
**Category:** Hookmark Feature Requests
**Created:** [July 22, 2019, 7:36am UTC](https://discourse.hookproductivity.com/t/linking-to-the-application-not-a-document-in-the-application/585 "2019-07-22T07:36:52Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![stevelw](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@stevelw](https://discourse.hookproductivity.com/u/stevelw)
#### Post date: [July 24, 2019, 4:50am UTC](https://discourse.hookproductivity.com/t/linking-to-the-application-not-a-document-in-the-application/585/8 "2019-07-24T04:50:02Z")

</div>

> [@raguay](#):
>
> Since the address is Hook specific (ie: hook://file/YHdLtdMUo?p=Ly9BcHBsaWNhdGlvbnM=&n=kitty.app for the Kitty.app terminal), how would I generate that in AppleScript?

You don’t need to give Hook the hook:// URL (though that works), you can pass it the file URL. For example, look at the in-built Finder integration script — here’s a modified version I used:

> [@PDF Expert integration scripts](https://discourse.hookproductivity.com/t/pdf-expert-integration-scripts/457):
>
> I’ve seen some interest in PDF Expert integration. Here’s my script to integrate — ideally PDF Expert would add AppleScript support. I don’t use PDF Expert myself and haven’t done much testing, so do let me know if this does what you want. Get Name tell application "System Events" get name of first window of process "PDF Expert" end tell Get Address tell application "System Events" tell process "PDF Expert" if enabled of menu item "Show in Finder" of menu 1 of menu bar item "File" of menu…

---

_[View the full topic](https://discourse.hookproductivity.com/t/linking-to-the-application-not-a-document-in-the-application/585)._
