Links in Scrivener

Hi, I just purchased Hookmark pro and I am very happy :smiling_face_with_sunglasses:
I have already put it at work with Devonthink Pro which, for my use case, it’s the perfect combo.
I also tried to use it within Scrivener but no luck, I always get “No linkable item found in Scrivener”.
I have tried to add x-scrivener-item into Hookmark script configuration but it still doesn’t work.
I checked in settings - privacy - accessibility and Hookmark is enabled.
I also checked settings - privacy - automation - Hookmark and I can see many apps but not Scrivener.
Is there something I can do to fix this?
Thank you

2 Likes

Welcome to Hookmark forum, @Tech_in_IT .

What’s your system language?

Could you please go to settings - privacy - automation - Hookmark, and make sure the checkbox for System Event is enabled:
image

Thank you

1 Like

Yes it is enabled. My Mac is in Italian.

1 Like

Thank you, @Tech_in_IT .

Currently, it is only working with English. We will fix it ASAP.

2 Likes

@Tech_in_IT , we have updated our script server, version 371. Could you please go to Hookmark Settings window ->Update->Check Now to update your script and see if it resolves the issue? You might need restart your Hookmark.

Thank you

1 Like

Just checked it now:

script version seems to be fine. I closed and reopened Hookmark and tried to create a hook in Scriverer but it doesn’t work, still no linkable item :frowning:

PS: Thank you for your help

1 Like

Thank you, @Tech_in_IT .

Have you tried restarting Hookmark?

If it still does not work, could you please select an entry in Scrivener, copy the script below and Paste it into /Applications/Utilities/Script Editor, then click on run button. Please post the output of the result pane here.

Summary

set the clipboard to ""
delay 0.3

tell application "Scrivener"
	activate
end tell
tell application "System Events"
	tell process "Scrivener"
		
		tell menu bar 1
			try
				
				click menu item 3 of menu 1 of menu item "Move Focus To" of menu "Navigate"
				set isHidden to not enabled of menu item "Copy Document as External Link" of menu 1 of menu item "Copy Special" of menu "Edit"
				
				click menu item "Reveal in Binder" of menu "Navigate"
				click menu item 3 of menu 1 of menu item "Move Focus To" of menu "Navigate"
				
				click menu item "Copy Document as External Link" of menu 1 of menu item "Copy Special" of menu "Edit"
				delay 0.1
				set scrivAddr to the clipboard
				
				click menu item "Copy" of menu "Edit"
				delay 0.1
				set scrivName to the clipboard
				
				if isHidden then
					click menu item 5 of menu "View"
				end if
			on error esg
				click menu item 3 of menu 1 of menu item 13 of menu 7
				set isHidden to not enabled of menu item 1 of menu 1 of menu item 6 of menu 4
				
				click menu item 1 of menu 7
				click menu item 3 of menu 1 of menu item 13 of menu 7
				
				click menu item 1 of menu 1 of menu item 6 of menu 4
				delay 0.1
				set scrivAddr to the clipboard
				
				click menu item 5 of menu 4
				delay 0.1
				set scrivName to the clipboard
				
				if isHidden then
					click menu item 5 of menu 6
				end if
				
			end try
			
			return "[" & scrivName & "](" & scrivAddr & ")"
		end tell
	end tell
end tell
1 Like

Did you possibly override Hookmark’s Scrivener script. If so, please hit the “-” button at bottom left, and update Hookmark again.

1 Like

Great, thank you so much, I just reverted the script (minus sign) and updated. Now it’s working fine :slight_smile:

Anyway, hoping this can help you or others, here’s the output of the script:

1 Like