Script: Copy for Markdown transclusion

For one (or more) selected records it sets the clipboard to the text that’s necessary to add a transclusion in a Markdown record. In your thread you wrote

You have to somehow build the string:

{{ + location + name + }}

If you set property theLinkType to 2 this script copies this kind of transclusion link.

  • Paste in Script Editor.app
  • Save to DEVONthink’s script folder
    ~/Library/Application Scripts/com.devon-technologies.think3/Menu

You can add a shortcut to the script’s filename, e.g. MyScript___CTRL + C.scpt. That’s three underscores, then the shortcut, then the extension. It’s simpler to use CustomShortcuts.app. If you use CustomShortcuts just start typing the name of the script.

1 Like