Deep Linking Hook

Welcome, @LucB! In case of DEVONthink the x-devonthink-item://<uuid> scheme supports already additional parameters like page (zero-based page number) or time (offset in seconds in audio/video file). Such item links can be copied in the user interface via the contextual menu. Or created via AppleScript like this:

tell application id "DNtp"
	set theWindow to think window 1
	if exists content record of theWindow then
		set theURL to reference URL of content record of theWindow
		set thePage to current page of theWindow
		set theTime to current time of theWindow
		if thePage is not -1 then
			set theURL to theURL & "?page=" & (thePage as string)
		else if theTime is greater than 0.0 then
			set theURL to theURL & "?time=" & (theTime as string)
		end if
		return theURL
	else if (count of selected records) is 1 then
		return reference URL of selected record 0
	end if
end tell
12 Likes