MindNode Next breaks Hook integration

The next-gen version of MindNode has significant differences in its file storage and management functionality. Originally, Mindnode documents were exposed in the file system and stored in iCloud. While the new version still uses iCloud, documents are technically stored in a database and not directly accessible by the end user. MindNode Next allows you to copy links to specific documents from within its integrated file manager, but those links are “MindNode.com” links. I can’t speak to whether they’re exposable through AppleScript.

We just updated our script server with the support for MindNode Next, script version 351. Please update your local Hookmark script and give it a try.

Thank you

Hello,

I am on version 351 and Hookmark returns “No linkable item…” when i invoke Hookmark from both inside a document and from the file browser. Any ideas on how to troubleshoot?

Could you please open a mind map document , select a node and run the following script in Script Editor? Then post the result here.

Thank you

Summary
use framework "AppKit"
use scripting additions
use framework "Foundation"

tell application "MindNode Next"
	activate
end tell

set the clipboard to ""
delay 0.1

set theUrl to ""
set theTitle to ""
tell application "System Events"
	tell process "MindNode Next"
		click menu item 16 of menu 1 of menu bar item 4 of menu bar 1
		
		
		delay 0.3
		repeat 10 times -- poll clipboard for ~2 seconds. Sometimes set x to the clipboard throws exception
			try
				set theUrl to the clipboard
				if theUrl is not equal to "" then
					exit repeat
				end if
			end try
			delay 0.1
		end repeat
		
		if length of theUrl is 0 then
			click menu item 13 of menu 1 of menu bar item 3 of menu bar 1
			
			delay 0.3
			repeat 10 times -- poll clipboard for ~2 seconds. Sometimes set x to the clipboard throws exception
				try
					set theUrl to the clipboard
					if theUrl is not equal to "" then
						exit repeat
					end if
				end try
				delay 0.1
			end repeat
			set AppleScript's text item delimiters to "#"
			set theResults to text items in theUrl
			set theTitle to second item of theResults
			return "{\"name\":\"" & my base64encode(theTitle) & "\", \"address\":\"" & my base64encode(theUrl) & "\"}"
			
			
		else
			set theUrl to paragraph 1 of theUrl
			click menu item 17 of menu 1 of menu bar item 4 of menu bar 1
			
			
			delay 0.3
			repeat 10 times -- poll clipboard for ~2 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
			set theTitle to paragraph 1 of theTitle
			return "{\"name\":\"" & my base64encode(theTitle) & "\", \"address\":\"" & my base64encode(theUrl) & "\"}"
		end if
		
	end tell
end tell
on base64encode(str)
	return do shell script "base64  <<<" & quoted form of str
end base64encode