# Bookends Hooks link as formatted citation?

**URL:** https://discourse.hookproductivity.com/t/bookends-hooks-link-as-formatted-citation/1676
**Category:** Discussion & Help
**Created:** [July 7, 2020, 9:03pm UTC](https://discourse.hookproductivity.com/t/bookends-hooks-link-as-formatted-citation/1676 "2020-07-07T21:03:39Z")
**Posts on this page:** 1
**Showing post:** 8

<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 19, 2020, 5:28am UTC](https://discourse.hookproductivity.com/t/bookends-hooks-link-as-formatted-citation/1676/8 "2020-11-19T05:28:32Z")

</div>

> [@dr.cox](#):
>
> great Job on the Hook2 release.

Thank you!

> [@dr.cox](#):
>
> Any update on the issue of links to Bookends in APA format?

Here’s a script you can insert in [Hook \> Preferences \> Scripts \> Bookends \> “Get Name”](https://hookproductivity.com/help/preferences/script-editor/):

```
tell application id "com.sonnysoftware.bookends"
	
	set selected_ids to «event ToySRUID» "Selection"
	set selected_ids to words of selected_ids --coerces to list
	set n to count of selected_ids
	if n ≥ 1 then
		set sid to item 1 of selected_ids
		return «event ToySGUID» («event ToySRUID» "Selection") given «class RRTF»:"false", string:"APA 6th Edition"
	end if
	
end tell

```

Notice

1. `class RRTF»:"false"`.
2. I’ve chosen `string:"APA 6th Edition"` but you can delete that and Bookends will give you a default.

Here’s an example result:

> Beaudoin, L. P. (1994). Goal processing in autonomous agents. Unpublished Doctoral Thesis, Birmingham, England, University of Birmingham (England) Birmingham.

I’ll ask devs to consider changing the default to something like the above. Different people might want different formats. Some people would want a citation format instead (like Author (year)). Given Bookends’ AppleScript dictionary and the configurability of Hook, there are many possibilities.

I’ve exchanged emails with Jon Ashwell of Sonny Software. He’s quite receptive to people asking questions about Hook+Bookends automation over at [Bookends - sonnysoftware.com](https://www.sonnysoftware.com/phpBB3/viewforum.php?f=2). I’m sure he and his community would be happy to suggest some AppleScript for whatever particular formats Hook users are drawn to.

---

_[View the full topic](https://discourse.hookproductivity.com/t/bookends-hooks-link-as-formatted-citation/1676)._
