The “Copy Link” command copies a link to the current item (file, document, web page, whatever). “Current” means the item that was selected or open in the frontmost active window when you invoked Hook.
The Copy Link command is available from the Title menu of the Hook window, and from the selected
Link menu. Here it is shown on the Title menu:
Here’s how you do it:
- Invoke Hook (with ⌘⇧SPACE or some other means) in the context of an app (such as BBEdit in the example above),
- Click the Title menu (or type
⌃Twhich shows the Title menu).
- From there, you can double click the
That copies the link to the clipboard and closes the window.
Or, much more quickly: just invoke Hook and then type
⌘C, which copies the address of the item in the title bar and closes the Hook window.
Here’s what I did in the screenshot above:
- In BBEdit, I had a file open that was called
Local links help you work faster.txt.
- I invoked Hook with ⌘⇧SPACE,
- I selected ⌘C
Then I hit “
return, which put a hyperlink in the clipboard like this: Local links help you work faster.txt. (That link won’t work for you however, unless you have a copy of that file on your Mac. It’s just an example.) Again, I normally would just do ⌘C in Hook. Much faster.
Here’s what “Copy Link” does:
Copy Link command is a quick way to copy a formatted hyperlink (with its name and address properly set) to the object.
Where you can use Hook’s “Copy Link”
Not only can you use the command in a web browser, you can use it in any supported app! That means you can quickly get a link to :
- a web page,
- a file on your desktop (and the link will normally work even if you move or rename the file),
- an email,
- a task (in OmniFocus, TaskPaper, Things, etc.),
- an item in a personal information manager (like Evernote, or EagleFiler),
- a note (for instance in Tinderbox or Bear writer app),
Here’s what you can do after “Copy Link” :
Once you have copied a link, you can:
- paste it wherever you want (for instance in a web browser’s search/address bar, in an email, in a document, or wherever else.)
- use Hook’s super handy “Hook to Copied Link” command to hook the link target to another item. This is like pasting the link in the Hook window of either item.
How will this change your life?
Hook’s “Copy Link” command is an extremely significant, quasi-magical, breakthrough in personal computing. Here’s why.
1. Pasting links so you (and others) can get things done
The “Copy Link” command means you can now paste links to almost anything, anywhere on your Mac, in emails, notes, shared Dropbox documents, etc. This is what hypertext was meant to do decades ago, but was never really possible across apps before Hook.
Before all your documents, notes, emails, etc. were in silos, sequestered from each other. Now you can link them together.
That means you can now quickly get from, say, a task (in your “todo list”, OmniFocus, Things, etc.) to the document that the tasks references!
So you can write notes to yourself or others that contain links to urgent / important information on your Mac (or elsewhere), such as
- “finish writing
this document” (where “this document” is a link to the document, and the name of the link is the name of the document, e.g., in Word, Pages, or anything)
- “respond to
this email” (where “this email” is a link to the specific email ; the label is automatically the subject of the email itself!),
- “mark all the papers in
this folder” (where “this folder” is a link to the Finder folder, and its name is the name of the folder),
- respond to the comments on
this blog post(where “this blog post” is a link to the blog post, and its name is the title of the blog post)
- and so much more… there’s no end to what you can reference.
Yes. Thanks to Hook, with one command ( “Copy Link”) you have a well formatted link to almost anything!
That saves you eons of search time. Once you get in the hang of this, you will never look back.
2. “Linking to Copied Address” in the Hook window
Linking directly in the Hook window means that you can immediately navigate between linked items. Hook links are bidirectional!
With “Hook to Copied Link”, you don’t even need to read through a document to obtain key links. The Hook window shows you the links you’ve deemed worthy to forge.
There are more benefits. We’ve described some here. But just like no one in the early days of the web could understand it without trying it, you’ll better understand the value of desktop links once you start creating and using them yourself.
Before Hook, most people hardly created links
Before Hook, even most programmers, web developers and writers hardly created hyperlinks. Why? Because they could really just create links to web pages or files, and those links were brittle, and tedious to make.
because Hook makes linking super easy, its potential is transformative. It means you can link to web pages more rapidly than ever before, and you can use the same gestures to link to almost anything.
This makes both technical people and lay people much more cognitively productive.
Advanced information about URLs
Different types of resources produce different types of addresses. Websites and pages will produce familiar http(s):// addresses (“URLs”).
When an application has a custom address “scheme”, Hook uses that. So if you invoke Hook in OmniFocus, for example, “Copy Link” will produce an address with the scheme, “omnifocus://”. Those links can be pasted and opened anywhere without Hook being involved as a proxy. Many other apps have custom schemes (e.g., bear:// , drafts5:// , evernote:// , ulysses://, bookends:// , addressbook:// , and things:///). Hook should always return the custom scheme if it can.
hook:// addressing schemes
In some cases, Hook will produce addresses with its own “scheme”, i.e. “hook://” followed by a “sub-scheme”, meaning
hook://<sub-scheme>/<identifier>. The “sub-scheme” portion of the address corresponds to the application or type of resource that is being addressed: email, file and potential other types of information.
For example, links to emails look have the form,
hook://email/<identifer> and files are
hook://file/identifier. This allows you to refer to email messages uniformly regardless of the particular app in which you copy the link (e.g., Apple Mail, MailMate or AirMail). It also means that you can send
hook://email links to other people and they can open the email by clicking on the link, regardless of their email client, so long as they are using Hook and they have a copy of the same email. This is because every email has a unique identifier (as defined by an “RFC”). (Microsoft Outlook however does not respect this. So in that case, Hook reverts to Microsoft’s custom email addressing. Also currently Spark email client does not programmatically expose the information required for users to do this. However, Hook covers the vast majority of email cases.)
Similarly, Hook also defines a “file” sub-scheme:
hook://file. When you click those links, Hook acts as a proxy and finds them. Hook uses sophisticated mechanisms that enable its hook://file links to be robust even if you rename the file or move it around. In fact, you can even unmount the file system, version control system repository, or cloud storage folder in which a file resides, and remount it later, and Hook can typically resolve the hook://file link. And you can also email hook://file links to other people.
Technical information about links in the clipboard
“Copy Link” writes both a plain text and rich text (rtf) link to the clipboard. The rich text link is a hyperlink and the plain text link is just the URL.
macOS will paste the format which matches the text field, so if you paste into the subject of an email in Mail.app it will paste plain text, and if you paste into the body it will paste rich text.
For example, if you invoke Hook on this web page and use its “Copy Link” command on it, Hook will put the following in the clipboard:
- “`https://hookproductivity.com/help/hook-window/copy-as-link“` as a plain address (URL),
- Copy Link – Hook, that is: a formatted link which includes the name of the resource (meaning, of this web page, “Copy Link – Hook”), and its address “`https://hookproductivity.com/help/hook-window/copy-as-link“`, and
- custom link information.
So, if you then
- open a plain text editor (like TextEdit in plain text mode; or BBEdit) and use its paste command, you will get the first option,
- if open a rich text editor (like TextEdit in RTF mode, or Pages) and use its paste command, you will get the second option (a formatted link),
- if you invoke Hook on another resource, like an email, and then use “Hook to Copied Link”, Hook will use the third version (though Hook can also work with the others).
If you are using a clipboard manager, you might want to add Hook to its list of apps to exclude from managing. (See this topic.)