Creating related notes by right clicking?

many thx to @troejgaard for providing this helpful script –
– actually this seems one of two scripts in DT that really change the whole depth-of-engagement with DT for me, as it opens up a way to really work with context as content.

I am very reluctant w/ custom metadata, as it often does not fit my workflow, as the information there is not used in the onboard-AI and related search of DT, which for me is one of the main reasons to work in DT.

so, not being a script person – and probably being ‘uninitiated’ for the forseeable future, as we all have limited resources –, I would dare to make a request here, to those adept in scripting. Also in the hope this is also of interest to others w/ similar workflows like mine.

It would be fantastic if this script could be extended to do 2 more things:

  1. mention the note-type (from the great pick-list) in the title (– so it´s more visible)
  2. allow for an image-centered scenario, where the annotated image is included as transcluded link (and thus thumb within the note).

I know 2) is possible as @BLUEFROG once kindly provided me with a script that could do such a thing, via

set {recName, recLink} to {name without extension, reference URL} of theRecord
         if (type of theRecord) is picture then
		set theLink to "![](" & recLink & ")" as string -- Image Link
	else
		set theLink to "{{" & recName & "}}" as string -- Transclusion
	end if

… but given my non-parlance of Apple-script I couldn´t make an inclusion of this work myself.

Any hints, hands, and snippets welcome and much appreciated, indeed! :folded_hands:

PS: the other script that really turned my use of DT 180° was by @pete31Script: Search results with context

1 Like