Spark Desktop electron app lacks automation for linking

Thank you, @DeLub .

What is your Hookmark version(in Hookmark about window) and macOS version?

Do you have clipboard manager running? I found I need quite Paste.

If you open an email in Spark, then copy the following script to Script Editor, run the script, what the output?

Thank you

Script

tell application "Spark Desktop"
	activate
end tell


set the clipboard to ""
delay 0.1

tell application "System Events" to tell process "Spark Desktop"
	keystroke "l" using {command down}
	delay 0.2
	repeat 10 times -- poll clipboard for ~1 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
	
	
end tell
return "[" & theUrl & "](" & theUrl & ")"