# Logos Bible App Links (Script server is updated, version 345)

**URL:** https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410
**Category:** Discussion & Help
**Created:** [February 20, 2023, 2:48pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410 "2023-02-20T14:48:35Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![tylermcrae7](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tylermcrae7](https://discourse.hookproductivity.com/u/tylermcrae7)
#### Post date: [February 20, 2023, 2:48pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/1 "2023-02-20T14:48:35Z")

</div>

I would love to be able to use Hookmark to hook references from the Bible app Logos. It appears the Logos app has the ability to generate a link that will reference a specific verse. Hookmark does not appear able to Hook to Copied Link with the link generated.

Here is an example link:  
logosres:esv;ref=BibleESV.Eph6.14-20;off=3;ctx=,\_to\_stand\_firm.\_14$C2$A0~Stand\_therefore,\_r$EF$BB$BFh

Any ideas on how to get this to work with the current version of Hookmark? Thanks!

---

<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: [February 22, 2023, 6:11pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/2 "2023-02-22T18:11:42Z")

</div>

Sorry it is currently not supported. We will take a look.

---

<div class="post-metadata">

### Author: ![arthurwerry](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@arthurwerry](https://discourse.hookproductivity.com/u/arthurwerry)
#### Post date: [February 23, 2023, 4:44pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/3 "2023-02-23T16:44:37Z")

</div>

What are you trying to do? If you copy the HTML link from Logos and then go to whatever you want to Hook to… invoke Hook and “Hook to copied link.”

Let me know if I can help.

---

<div class="post-metadata">

### Author: ![tylermcrae7](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tylermcrae7](https://discourse.hookproductivity.com/u/tylermcrae7)
#### Post date: [February 24, 2023, 12:52pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/4 "2023-02-24T12:52:55Z")

</div>

Hey @arthurwerry, from my understanding, the L4 link that I gave an example of in my original post, is the link that will open directly in the Logos desktop app. All other links seem to open in a browser which is what I am trying to avoid. Thanks for your time.

---

<div class="post-metadata">

### Author: ![arthurwerry](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@arthurwerry](https://discourse.hookproductivity.com/u/arthurwerry)
#### Post date: [February 24, 2023, 1:11pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/5 "2023-02-24T13:11:57Z")

</div>

Yes, that is annoying. Chrome will sometimes give a checkbox “always open with…” when the dialog pops up so it will more seemlessly open Logos itself, but I can’t get Chrome to give that option.

I’m not a scripting person, but I am sure someone with scripting knowledge could knock out something fairly quickly in Hookmark’s scripting to handle the L4 link that is very consistently generated by Logos.

---

<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: [February 28, 2023, 4:50am UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/6 "2023-02-28T04:50:28Z")

</div>

Welcome to the Hookmark Forum , @tylermcrae7. In my quick look at this I couldn’t see AppleScript in Logos. If they had some API in principle we could create a new hook:// URL scheme for those links. Also if it were exposed in a menubar \> menu \> menu item; or even just a reliable keyboard shortcut.

> **[Contacting Developers of Other Apps and Information for Developers – Hookmark](https://hookproductivity.com/help/integration/other-app-developers/)**
>
> Hookmark uses AppleScript to integrate with apps, but not all apps are scriptable or sufficiently scriptable. Suppose you open a previously saved resource (document or object) in an app and then invoke Hookmark, but Hookmark is empty except for...

---

<div class="post-metadata">

### Author: ![tylermcrae7](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tylermcrae7](https://discourse.hookproductivity.com/u/tylermcrae7)
#### Post date: [March 15, 2023, 7:49pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/7 "2023-03-15T19:49:13Z")

</div>

Hello Luc, I have sent an email to the company, but have not heard anything back from them. There is a reliable keyboard shortcut which is Opt + Cmd + C. There are 5 different options you can set within the Logos app that will copy a different link with that specific keyboard shortcut. Once the option is set, I don’t believe it changes. I don’t know if that is of use to you or not, but here is the documentation that speaks to those five options.

> **[How do I create links to content in Logos?](https://support.logos.com/hc/en-us/articles/360022299852-How-do-I-create-links-to-content-in-Logos-)**
>
> In Logos, the Copy Location as feature allows you to copy your current location in the active resource (based on the active milestone) to the computer’s clipboard in one of five formats.
> Note: Thes...

Thanks!

---

<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: [March 15, 2023, 11:29pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/8 "2023-03-15T23:29:08Z")

</div>

> [@tylermcrae7](#):
>
> There are 5 different options you can set within the Logos app that will copy a different link with that specific keyboard shortcut.

thanks for this and the other info.

> [@tylermcrae7](#):
>
> logosres:esv;ref=BibleESV.Eph6.14-20;off=3;ctx=,\_to\_stand\_firm.\_14$C2$A0~Stand\_therefore,\_r$EF$BB$BFh

If you were to copy the above text from this post, how would you feed it into Logos to get to the destination? Their instructions seem to say they need to be fed into a web browser…

I don’t see a way to construct a link that Logos could use. (but I don’t have additional relevant knowledge of that app).

---

<div class="post-metadata">

### Author: ![tylermcrae7](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tylermcrae7](https://discourse.hookproductivity.com/u/tylermcrae7)
#### Post date: [March 15, 2023, 11:49pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/9 "2023-03-15T23:49:05Z")

</div>

Not a problem!

From what I’ve seen, I can use an “Open URL” action in the Shortcuts app that will open straight to the location, which in this scenario, is Ephesians 6:14 of the ESV Bible within the Logos desktop app. I have also used it in an Obsidian note in what I believe is standard markdown linking which will open to the correct location.

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

I was hoping to be able to use Hookmark to “Hook to Copied Link” so I could attach the references to any number of items and click the link from there. 🙂

---

<div class="post-metadata">

### Author: ![tylermcrae7](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tylermcrae7](https://discourse.hookproductivity.com/u/tylermcrae7)
#### Post date: [October 16, 2023, 5:15pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/10 "2023-10-16T17:15:26Z")

</div>

Hello again! I was just curious if there is any update on this? I am attempting to write a script utilizing the option–command–c keyboard shortcut to return the appropriate URL, but so far, I’ve only been able to return the HTML link and not the L4 link. This also does not seem very reliable from my testing, but I am not very well versed with AppleScript. Thanks!

---

<div class="post-metadata">

### Author: ![danieljomphe](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/danieljomphe/32/202_2.png) [@danieljomphe](https://discourse.hookproductivity.com/u/danieljomphe)
#### Post date: [October 16, 2023, 6:19pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/11 "2023-10-16T18:19:44Z")

</div>

Hi Tyler, did you make sure that only `L4` is highlighted in the menu, by clicking on some of the other options and then back on `L4`? Then if you `ALT-CMD-C` I would expect the L4 to be copied into the clipboard hopefully reliably.

 ![CleanShot 2023-10-16 at 14.17.13@2x](https://discourse.hookproductivity.com/uploads/default/original/2X/c/ca74c73040f08d4820acc9e46d297e3f0d73191c.jpeg)

---

<div class="post-metadata">

### Author: ![tylermcrae7](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tylermcrae7](https://discourse.hookproductivity.com/u/tylermcrae7)
#### Post date: [October 16, 2023, 6:53pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/12 "2023-10-16T18:53:33Z")

</div>

Hello Daniel, yes. It seems to consistently work when I use the keyboard to execute the shortcut which probably just means my simple script is the unreliable piece of the puzzle.

This is the script I have in the Get Address section of Hookmark script section.

```auto
tell application "System Events"
	key code 8 using {option down, command down} -- option-command-c
	set theLink to "[theResult](" & (the clipboard) & ")"
	set the clipboard to theLink
	return the clipboard
end tell

```

With the L4 section highlighted, it does not return a url for me in Hookmark. In the script editor, my script returns this. [theResult] (logosres:nasb95para;ref=BibleNASB95.1Jn3.4-12) (I separated the URL so you could see the full URL).  
This link will open correctly into the Logos Desktop App. I think Hookmark cannot handle this type of URL which I think is a custom URL for the Logos Desktop app.

---

<div class="post-metadata">

### Author: ![danieljomphe](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/danieljomphe/32/202_2.png) [@danieljomphe](https://discourse.hookproductivity.com/u/danieljomphe)
#### Post date: [October 17, 2023, 8:07pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/13 "2023-10-17T20:07:15Z")

</div>

Ok, I understand - the AppleScript works with regard to the Logos app, putting e.g. `logosres:nasb95para;ref=BibleNASB95.1Jn3.4-12` in the clipboard, then making a markdown version of it and putting that in the clipboard, but this kind of custom link that we’d hope Hookmark could use isn’t recognized as valid by Hookmark, and we’re stuck…

---

<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 18, 2023, 7:07pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/14 "2023-10-18T19:07:37Z")

</div>

For now you can try the following scripts. It is UI scripting so sometimes you may need try more than once. It only works with L4 link

(1) Set Logos’ Copy Location as to “L4”  
(2)Copy the following script to Logos’ Get Address pane.

> **Get Address Script**
>
> ```auto
> 
> tell application "System Events"
> set the clipboard to ""
> delay 0.1
> keystroke "c" using {option down, command down}
> delay 0.1
> 	
> repeat 10 times -- poll clipboard for ~1 seconds. Sometimes set x to the clipboard throws exception
> try
> set theLink to the clipboard
> if theLink is not equal to "" then
> exit repeat
> end if
> 			
> end try
> delay 0.1
> end repeat
> 	
> delay 0.2
> set the clipboard to ""
> delay 0.2
> 	
> keystroke "c" using {command down}
> delay 0.2
> repeat 10 times -- poll clipboard for ~1 seconds. Sometimes set x to the clipboard throws exception
> try
> set theTitle to the clipboard
> if theTitle is not equal to "" then
> exit repeat
> end if
> 			
> end try
> delay 0.1
> end repeat
> return "[" & theTitle & "](logosres://" & theLink & ")"
> 	
> end tell
> 
> ```

(3)Copy the following script to Logos’ Open Item pane

> **Open Item script**
>
> ```auto
> set logosURL to "$0"
> 
> set logosURL to text 12 thru -1 of logosURL
> 
> tell application "System Events"
> open location logosURL
> 
> end tell
> 
> ```

(4) Set the scheme to logosres

 ![image](https://discourse.hookproductivity.com/uploads/default/original/2X/0/0c1173ff5094e05fb730af7a388f04d944e02d79.jpeg)

(5)Click on save button

Thank you

---

<div class="post-metadata">

### Author: ![tylermcrae7](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tylermcrae7](https://discourse.hookproductivity.com/u/tylermcrae7)
#### Post date: [October 18, 2023, 11:55pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/15 "2023-10-18T23:55:41Z")

</div>

Well sir, you have accomplished what I could not. Thanks so much!! It seems to do exactly what I was wanting. You rock.

I understand roughly what the get address script is doing. What is the significance of “$0” in the open item script?

Thanks again for your help!!

---

<div class="post-metadata">

### Author: ![danieljomphe](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/danieljomphe/32/202_2.png) [@danieljomphe](https://discourse.hookproductivity.com/u/danieljomphe)
#### Post date: [October 19, 2023, 12:26pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/16 "2023-10-19T12:26:10Z")

</div>

Yes, thanks a lot for making it start to happen, @bchend!

> [@tylermcrae7](#):
>
> What is the significance of “$0” in the open item script?

As per [the documentation](https://hookproductivity.com/help/integration/creating-integration-scripts/):

> Any instance of the string `“$0”` in the script will be replaced with the URL.

---

<div class="post-metadata">

### Author: ![tylermcrae7](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tylermcrae7](https://discourse.hookproductivity.com/u/tylermcrae7)
#### Post date: [October 19, 2023, 1:44pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/17 "2023-10-19T13:44:56Z")

</div>

Awesome. Thanks for pointing that out!

---

<div class="post-metadata">

### Author: ![HanjoKim](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/hanjokim/32/3282_2.png) [@HanjoKim](https://discourse.hookproductivity.com/u/HanjoKim)
#### Post date: [October 26, 2023, 6:04am UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/18 "2023-10-26T06:04:57Z")

</div>

This page, [https://wiki.logos.com/hyperlinks](https://wiki.logos.com/hyperlinks), contains the basic information on hyperlinks in the Logos app. L4 links can be opened in Mac and Windows with native apps. The anatomy of the L4 links is relatively straightforward.

---

<div class="post-metadata">

### Author: ![tylermcrae7](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tylermcrae7](https://discourse.hookproductivity.com/u/tylermcrae7)
#### Post date: [August 13, 2024, 2:47pm UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/19 "2024-08-13T14:47:30Z")

</div>

Hello @bchend, I had to add a delay at the start of the provided script to make it work in script editor. In Hookmark, the script is returning “No linkable item found in Logos” any ideas why this stopped working? Nothing else has changed with the scripts or the url’s provided from what I can tell.

```auto
tell application "System Events"
	delay 1
	set the clipboard to ""
	delay 0.1
	keystroke "c" using {option down, command down}
	delay 0.1
	
	repeat 10 times -- poll clipboard for ~1 seconds. Sometimes set x to the clipboard throws exception
		try
			set theLink to the clipboard
			if theLink is not equal to "" then
				exit repeat
			end if
			
		end try
		delay 0.1
	end repeat
	
	delay 0.2
	set the clipboard to ""
	delay 0.2
	
	keystroke "c" using {command down}
	delay 0.2
	repeat 10 times -- poll clipboard for ~1 seconds. Sometimes set x to the clipboard throws exception
		try
			set theTitle to the clipboard
			if theTitle is not equal to "" then
				exit repeat
			end if
			
		end try
		delay 0.1
	end repeat
	return "[" & theTitle & "](logosres://" & theLink & ")"
	
end tell

```

Thanks!

---

<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: [August 15, 2024, 10:54am UTC](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410/20 "2024-08-15T10:54:55Z")

</div>

I just gave it a try. But I am not able to reproduce the problem.

It could be affected by another app because of the UI scripting.

If you change “delay 1” to “delay 0.5”, will it still work?

Thank you

[Next page](https://discourse.hookproductivity.com/t/logos-bible-app-links-script-server-is-updated-version-345/6410.md?page=2)
