I can not use Hook with Zotero

Hi, I am Tsutomu from Japan.

I read Using Hookmark with Zotero Using Hookmark with Zotero – Hookmark
I set it up.
But I can not use Hook with Zotero.
Hook shows: No linkable item in Zotero.
What do I do?
Please let me know.
Hook: Version 6.5 (6117; Integration v. 345)
Zotero: 7.0.7

Welcome to Hookmark forum, @Tsutomu .

If you selected a record, press shift+commad+c, what do you get?

Does your Settings->Export looks like below:

Thank you

Thank you for response.

Yes, I set it up.
Settings->Export
item format: Markdonw item URI

But Hook cannot get Markdonw item URI from Zotero.

Just want to make sure, can you use the shortcut to get the markdown URI?

Thank you

Yes, my Zotero gets a Markdown item URI when I press shift+xommond+C.
My Zotero also shows Copy as Markdown item URI in Menu item.

Screenshot 2024-11-25 at 17.55.29

Thank you for the info, @Tsutomu .

Could you please
(1) Select a record in Zotero
(2) Run the following script in Script Editor and see if it return a markdown link?

Thank you

Summary
tell application id "org.zotero.zotero"
	activate
end tell

set the clipboard to ""
delay 0.1


tell application "System Events" to tell process id "org.zotero.zotero"
	keystroke "c" using {shift down, command down}
	delay 0.1
	repeat 20 times -- poll clipboard for ~2.5 seconds. Sometimes set x to the clipboard throws exception
		try
			set markdownLink to the clipboard
			if markdownLink is not equal to "" then
				exit repeat
			end if
			
		end try
		delay 0.1
	end repeat
	
end tell
return markdownLink

Thank you for your response.
I run the script.


Script seems not to return a markdown link.

Thank you for the info, @Tsutomu .

Could you please run the following script in Script Editor and see if it throws any error message?

Thank you

Script
tell application id "org.zotero.zotero"
	activate
end tell

set the clipboard to ""
delay 0.1


tell application "System Events" to tell process id "org.zotero.zotero"
	keystroke "c" using {shift down, command down}
	delay 0.1
	repeat 20 times -- poll clipboard for ~2.5 seconds. Sometimes set x to the clipboard throws exception
		try
			set markdownLink to the clipboard
			if markdownLink is not equal to "" then
				exit repeat
			end if
		on error errStr number errorNumber
			display dialog errStr
			
			
		end try
		delay 0.1
	end repeat
	
end tell
return markdownLink

Thank you for your response.
I run the script.

Script Editor seems to throw no error message.
Nothing happens.

log

tell application "Zotero"
	activate
end tell
tell application "Script Editor"
	set the clipboard to ""
end tell
tell application "System Events"
	keystroke "c" using {shift down, command down}
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
	the clipboard
end tell
Result:
""

Replies

tell application "Zotero"
	activate
end tell
tell application "Script Editor"
	set the clipboard to ""
end tell
tell application "System Events"
	keystroke "c" using {shift down, command down}
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
	the clipboard
		--> ""
end tell
Result:
""

Hi, what version of macOS are you running? It seems to me the plugin is not working on your system for some reason.

Hi,
My Mac is macOS Sequoia 15.11.