# \#automation

**URL:** https://discourse.devontechnologies.com/tag/automation/3.md

[Latest](https://discourse.devontechnologies.com/latest.md) · [Categories](https://discourse.devontechnologies.com/categories.md) · [Tags](https://discourse.devontechnologies.com/tags.md)

---

## [Batch update pdf outgoing links (selection links)](https://discourse.devontechnologies.com/t/batch-update-pdf-outgoing-links-selection-links/87793)

<div class="topic-metadata">

**Author:** [@weirded](https://discourse.devontechnologies.com/u/weirded)\
**Replies:** 2\
**Last updated:** [October 6, 2026, 6:08pm UTC](https://discourse.devontechnologies.com/t/batch-update-pdf-outgoing-links-selection-links/87793 "2026-10-06T18:08:02Z")

</div>

Hi all, I have received a PDF containing a relatively large number of outgoing links to local PDF files. The PDF was created on Windows, so the links currently point to paths such as: /C:/Users/Desktop/.../xyz.pdf The…

---

## [Pass only specific pages to models in batch process](https://discourse.devontechnologies.com/t/pass-only-specific-pages-to-models-in-batch-process/87767)

<div class="topic-metadata">

**Author:** [@SergiyHoref](https://discourse.devontechnologies.com/u/SergiyHoref)\
**Replies:** 2\
**Last updated:** [October 4, 2026, 8:43am UTC](https://discourse.devontechnologies.com/t/pass-only-specific-pages-to-models-in-batch-process/87767 "2026-10-04T08:43:40Z")

</div>

Hello! Lately, after the Apple Foundation Models have become an option to use in DT, I have considered using them for simple tasks like “Rename file to chat suggestion”, so save the money from an api call. However, in …

---

## [Lost in translation](https://discourse.devontechnologies.com/t/lost-in-translation/87623)

<div class="topic-metadata">

**Author:** [@DTPer](https://discourse.devontechnologies.com/u/DTPer)\
**Replies:** 7\
**Last updated:** [September 22, 2026, 6:50pm UTC](https://discourse.devontechnologies.com/t/lost-in-translation/87623 "2026-09-22T18:50:27Z")

</div>

I work, write and gather information in DEVONthink in four languages. That’s simply how my work is, and that’s fine – but text search is a mess. I end up running four separate searches, one after another. I might forget …

---

## [A text prompt for Markdown document](https://discourse.devontechnologies.com/t/a-text-prompt-for-markdown-document/87642)

<div class="topic-metadata">

**Author:** [@TonyLim](https://discourse.devontechnologies.com/u/TonyLim)\
**Replies:** 3\
**Last updated:** [September 17, 2026, 3:36am UTC](https://discourse.devontechnologies.com/t/a-text-prompt-for-markdown-document/87642 "2026-09-17T03:36:14Z")

</div>

This is my iOS shortcut. It prompt for the type. If you choose Markdown, it prompt for the content/text. I want this second prompt to quickly enter the content/text into a Markdown document. I don’t need the first prom…

---

## [Tag preservation: Readwise Reader export \> Obsidian \> DT](https://discourse.devontechnologies.com/t/tag-preservation-readwise-reader-export-obsidian-dt/87587)

<div class="topic-metadata">

**Author:** [@mfessler](https://discourse.devontechnologies.com/u/mfessler)\
**Replies:** 10\
**Last updated:** [September 7, 2026, 8:07pm UTC](https://discourse.devontechnologies.com/t/tag-preservation-readwise-reader-export-obsidian-dt/87587 "2026-09-07T20:07:32Z")

</div>

Hi - I’ve been using Readwise Reader pretty extensively, and have several thousand articles saved there. I have been struggling to use them for research. I found out recently that it is possible to export not only Readw…

---

## [Smart Rules: When does the 'weekly' action trigger?](https://discourse.devontechnologies.com/t/smart-rules-when-does-the-weekly-action-trigger/87546)

<div class="topic-metadata">

**Author:** [@brookter](https://discourse.devontechnologies.com/u/brookter)\
**Replies:** 10\
**Last updated:** [August 31, 2026, 5:28pm UTC](https://discourse.devontechnologies.com/t/smart-rules-when-does-the-weekly-action-trigger/87546 "2026-08-31T17:28:33Z")

</div>

Hi, I want to run a smart rule once a week acting on documents modified during the previous week (using ‘last week’ as the criterion), but I’m not clear when exactly it would be triggered. The definition of ‘this week…

---

## [Smart Rule to move file On Import not working](https://discourse.devontechnologies.com/t/smart-rule-to-move-file-on-import-not-working/87533)

<div class="topic-metadata">

**Author:** [@wannabedevonian](https://discourse.devontechnologies.com/u/wannabedevonian)\
**Replies:** 2\
**Last updated:** [August 28, 2026, 7:01am UTC](https://discourse.devontechnologies.com/t/smart-rule-to-move-file-on-import-not-working/87533 "2026-08-28T07:01:55Z")

</div>

I created a SmartRule to look for the import of a document, a PDF+Text, into the inbox. Where it contains certain text and arrives in the inbox today, the item is moved to another group. The mechanism by which the item …

---

## [doJavaScript on a Markdown preview?](https://discourse.devontechnologies.com/t/dojavascript-on-a-markdown-preview/87443)

<div class="topic-metadata">

**Author:** [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Replies:** 5\
**Last updated:** [August 10, 2026, 3:49pm UTC](https://discourse.devontechnologies.com/t/dojavascript-on-a-markdown-preview/87443 "2026-08-10T15:49:24Z")

</div>

It’s it possible to have doJavaScript inject code in a MD preview? I’m not referring to a script element in the MD here.

---

## [Recommended technique to identify a PDF with no OCR layer in a script](https://discourse.devontechnologies.com/t/recommended-technique-to-identify-a-pdf-with-no-ocr-layer-in-a-script/87372)

<div class="topic-metadata">

**Author:** [@pfarrelle](https://discourse.devontechnologies.com/u/pfarrelle)\
**Replies:** 25\
**Last updated:** [August 5, 2026, 12:16pm UTC](https://discourse.devontechnologies.com/t/recommended-technique-to-identify-a-pdf-with-no-ocr-layer-in-a-script/87372 "2026-08-05T12:16:14Z")

</div>

I am working on a branch of code that is failing when processing PDF records with no OCR layer. That itself I can manage, but in the process of setting up a testbed, I came to question how I was determining that a PDF i…

---

## [What does the font in a RichText refer to?](https://discourse.devontechnologies.com/t/what-does-the-font-in-a-richtext-refer-to/87309)

<div class="topic-metadata">

**Author:** [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Replies:** 1\
**Last updated:** [July 12, 2026, 5:39pm UTC](https://discourse.devontechnologies.com/t/what-does-the-font-in-a-richtext-refer-to/87309 "2026-07-12T17:39:52Z")

</div>

The current scripting dictionary say: RichText Object \[see also Extended Text Suite\] : Rich (styled) text elements contains… properties font (text or missing value) : The name of the font of the first character. Apart …

---

## [Create Markdown shortcut](https://discourse.devontechnologies.com/t/create-markdown-shortcut/87289)

<div class="topic-metadata">

**Author:** [@TonyLim](https://discourse.devontechnologies.com/u/TonyLim)\
**Replies:** 2\
**Last updated:** [July 12, 2026, 1:39am UTC](https://discourse.devontechnologies.com/t/create-markdown-shortcut/87289 "2026-07-12T01:39:51Z")

</div>

I have a shortcut as below (left image). When the Markdown document was opened for editing, there is always the word “(Markdown)” on the first line. Do you guys have this problem? How can I get rid of that and simply ha…

---

## [Trouble getting all tags with JXA whose query](https://discourse.devontechnologies.com/t/trouble-getting-all-tags-with-jxa-whose-query/87239)

<div class="topic-metadata">

**Author:** [@pfarrelle](https://discourse.devontechnologies.com/u/pfarrelle)\
**Replies:** 7\
**Last updated:** [June 30, 2026, 4:15pm UTC](https://discourse.devontechnologies.com/t/trouble-getting-all-tags-with-jxa-whose-query/87239 "2026-06-30T16:15:44Z")

</div>

Just when I thought that I was understanding, I ran into a problem that I have isolated into the following code snippet: (() =\> { const dt = Application('DEVONthink'); const db = dt.currentDatabase; // get all tags…

---

## [Automating Highlight Extraction from Multiple Documents in DEVONthink Pro](https://discourse.devontechnologies.com/t/automating-highlight-extraction-from-multiple-documents-in-devonthink-pro/82319)

<div class="topic-metadata">

**Author:** [@DTPer](https://discourse.devontechnologies.com/u/DTPer)\
**Replies:** 7\
**Last updated:** [June 23, 2026, 11:06pm UTC](https://discourse.devontechnologies.com/t/automating-highlight-extraction-from-multiple-documents-in-devonthink-pro/82319 "2026-06-23T23:06:16Z")

</div>

Hello everyone, I’m looking for a way to automate the extraction of highlights from multiple documents in DEVONthink Pro and consolidate them into a single document. Ideally, the resulting document should include the ti…

---

## [I built a little macOS app to connect to DEVONthink MCP from Claude/ChatGPT/Grok/Perplexity apps](https://discourse.devontechnologies.com/t/i-built-a-little-macos-app-to-connect-to-devonthink-mcp-from-claude-chatgpt-grok-perplexity-apps/87088)

<div class="topic-metadata">

**Author:** [@syntagm](https://discourse.devontechnologies.com/u/syntagm)\
**Replies:** 14\
**Last updated:** [June 16, 2026, 5:46pm UTC](https://discourse.devontechnologies.com/t/i-built-a-little-macos-app-to-connect-to-devonthink-mcp-from-claude-chatgpt-grok-perplexity-apps/87088 "2026-06-16T17:46:40Z")

</div>

Hi friends, I built a tiny macOS app called Warplet (https://warplet.app/) that connects remote LLMs like Claude, ChatGPT, Grok or Perplexity to local MCP servers like the one from DEVONthink. (If this kind of post is a…

---

## [MCP Support for Raycast](https://discourse.devontechnologies.com/t/mcp-support-for-raycast/84618)

<div class="topic-metadata">

**Author:** [@vcbrewers](https://discourse.devontechnologies.com/u/vcbrewers)\
**Replies:** 11\
**Last updated:** [June 11, 2026, 12:30am UTC](https://discourse.devontechnologies.com/t/mcp-support-for-raycast/84618 "2026-06-11T00:30:26Z")

</div>

I would love to see MCP support for Raycast ( Raycast Store: Model Context Protocol Registry ) so that I can utilize different AI models to quickly interact with my database.

---

## [\[Release\] DEVONthink MCP Server](https://discourse.devontechnologies.com/t/release-devonthink-mcp-server/84391)

<div class="topic-metadata">

**Author:** [@syntagm](https://discourse.devontechnologies.com/u/syntagm)\
**Replies:** 78\
**Last updated:** [June 5, 2026, 6:19am UTC](https://discourse.devontechnologies.com/t/release-devonthink-mcp-server/84391 "2026-06-05T06:19:12Z")

</div>

Hi all, I created a little MCP server for managing DEVONthink through AI agents. I know this is similar to what DEVONthink can already do through AI chat, but it’s nice to have an agent be able to interact with DEVONthin…

---

## [AppleScript to Extract Domain for Custom Metadata in DEVONthink 4](https://discourse.devontechnologies.com/t/applescript-to-extract-domain-for-custom-metadata-in-devonthink-4/87032)

<div class="topic-metadata">

**Author:** [@Bahadir](https://discourse.devontechnologies.com/u/Bahadir)\
**Replies:** 3\
**Last updated:** [May 29, 2026, 7:58am UTC](https://discourse.devontechnologies.com/t/applescript-to-extract-domain-for-custom-metadata-in-devonthink-4/87032 "2026-05-29T07:58:52Z")

</div>

Hello there, I’m currently trying out DEVONthink 4 and I’m looking for an AppleScript that can remove the http/https/www parts and subdomains from a URL, then save just the domain as custom metadata when I add a new boo…

---

## [Rule for Date Change](https://discourse.devontechnologies.com/t/rule-for-date-change/86933)

<div class="topic-metadata">

**Author:** [@MoSel](https://discourse.devontechnologies.com/u/MoSel)\
**Replies:** 7\
**Last updated:** [May 18, 2026, 1:09pm UTC](https://discourse.devontechnologies.com/t/rule-for-date-change/86933 "2026-05-18T13:09:58Z")

</div>

Hi, I want to have a rule, which changes the Document Date to the Date in the file name “YYMMDD\_FileName”. I cannot figure out, how to use the function “Datum ändern” to use a variable from an action before for example …

---

## [Accessing the right-clicked record vs. the selection in a context menu script](https://discourse.devontechnologies.com/t/accessing-the-right-clicked-record-vs-the-selection-in-a-context-menu-script/86916)

<div class="topic-metadata">

**Author:** [@joelmeyerhamme](https://discourse.devontechnologies.com/u/joelmeyerhamme)\
**Replies:** 4\
**Last updated:** [May 14, 2026, 1:12pm UTC](https://discourse.devontechnologies.com/t/accessing-the-right-clicked-record-vs-the-selection-in-a-context-menu-script/86916 "2026-05-14T13:12:56Z")

</div>

I have a JXA script installed in the Contextual Menu folder that operates on all currently selected records. This works well in the common case, but there’s an edge case I’d like to handle correctly: If a user has sever…

---

## [JXA documentation?](https://discourse.devontechnologies.com/t/jxa-documentation/86836)

<div class="topic-metadata">

**Author:** [@bdamage](https://discourse.devontechnologies.com/u/bdamage)\
**Replies:** 2\
**Last updated:** [April 30, 2026, 10:01am UTC](https://discourse.devontechnologies.com/t/jxa-documentation/86836 "2026-04-30T10:01:33Z")

</div>

If I am writing an AppleScript as part of a smart rule, I can view the AppleScript dictionary from Script Editor. I can’t find an equivalent for JXA, which means I can’t find how to do \`set theResponse to get chat respon…

---

## [DEVONthink as bookmark manager, revisited](https://discourse.devontechnologies.com/t/devonthink-as-bookmark-manager-revisited/86783)

<div class="topic-metadata">

**Author:** [@meta](https://discourse.devontechnologies.com/u/meta)\
**Replies:** 8\
**Last updated:** [April 22, 2026, 3:26pm UTC](https://discourse.devontechnologies.com/t/devonthink-as-bookmark-manager-revisited/86783 "2026-04-22T15:26:55Z")

</div>

After trying a bookmark manager, I decided no, I really wanted my bookmarks in DEVONthink, for convenience of filing, privacy protection, and having one place to search for information. Unfortunately I’ve also concluded…

---

## [DEVONthink + Relational Databases](https://discourse.devontechnologies.com/t/devonthink-relational-databases/86683)

<div class="topic-metadata">

**Author:** [@Lydian91](https://discourse.devontechnologies.com/u/Lydian91)\
**Replies:** 8\
**Last updated:** [April 5, 2026, 4:45pm UTC](https://discourse.devontechnologies.com/t/devonthink-relational-databases/86683 "2026-04-05T16:45:46Z")

</div>

I see there are a handful of other posts that touch on relational databases—curious if others have tried these in conjunction with DEVONthink. I’ve spent a few years cultivating a setup I’m genuinely happy with, but ther…

---

## [Batch process add chat response to annotation creates file in shared group](https://discourse.devontechnologies.com/t/batch-process-add-chat-response-to-annotation-creates-file-in-shared-group/86665)

<div class="topic-metadata">

**Author:** [@manfred9](https://discourse.devontechnologies.com/u/manfred9)\
**Replies:** 5\
**Last updated:** [March 31, 2026, 8:34pm UTC](https://discourse.devontechnologies.com/t/batch-process-add-chat-response-to-annotation-creates-file-in-shared-group/86665 "2026-03-31T20:34:52Z")

</div>

When I use a batch process to add a chat response to a non existing annotation file, the file is created in the shared group. (My setting in preference is “In same group” - see below). If the annotation file exists (…

---

## [AppleScript not working](https://discourse.devontechnologies.com/t/applescript-not-working/86568)

<div class="topic-metadata">

**Author:** [@wannabedevonian](https://discourse.devontechnologies.com/u/wannabedevonian)\
**Replies:** 20\
**Last updated:** [March 18, 2026, 7:19pm UTC](https://discourse.devontechnologies.com/t/applescript-not-working/86568 "2026-03-18T19:19:41Z")

</div>

I am attempting to grab the sole tag on an item and append the tag content to the name of the item. Beloved AI provides me with the following AppleScript which I run from a Keyboard Maestro macro, but nothing happens. I …

---

## [DEVONthink 4 ghost launching and ghost activating](https://discourse.devontechnologies.com/t/devonthink-4-ghost-launching-and-ghost-activating/85823)

<div class="topic-metadata">

**Author:** [@markjule](https://discourse.devontechnologies.com/u/markjule)\
**Replies:** 8\
**Last updated:** [March 11, 2026, 2:16pm UTC](https://discourse.devontechnologies.com/t/devonthink-4-ghost-launching-and-ghost-activating/85823 "2026-03-11T14:16:56Z")

</div>

Using DEVONthink 4 (4.1.1), I experience ghost activating and ghost launching (if DT is not open) while working in other apps with DT usurping the active app focus. There is no predictable trigger, timing, or other app t…

---

## [Scripting question: update name of selected item link](https://discourse.devontechnologies.com/t/scripting-question-update-name-of-selected-item-link/86538)

<div class="topic-metadata">

**Author:** [@dansroka](https://discourse.devontechnologies.com/u/dansroka)\
**Replies:** 6\
**Last updated:** [March 9, 2026, 2:42pm UTC](https://discourse.devontechnologies.com/t/scripting-question-update-name-of-selected-item-link/86538 "2026-03-09T14:42:41Z")

</div>

I would like to have a version of the command “Update Name of Item Links” (under Tools \> Item Links) that work only on a selected link, not all links in the document. So I am trying to write a script to do this, but ran …

---

## [Applescript to Remove PDF Password](https://discourse.devontechnologies.com/t/applescript-to-remove-pdf-password/86514)

<div class="topic-metadata">

**Author:** [@rkaplan](https://discourse.devontechnologies.com/u/rkaplan)\
**Replies:** 16\
**Last updated:** [March 9, 2026, 1:35pm UTC](https://discourse.devontechnologies.com/t/applescript-to-remove-pdf-password/86514 "2026-03-09T13:35:38Z")

</div>

I have always wanted to be able to remove PDF passwords within Devonthink but did not know how to do it programmatically. It took Claude a few tries as well. Ultimately this works using the Mac CoreGraphics framework. …

---

## [Explicitly set zero in custom metadata with script](https://discourse.devontechnologies.com/t/explicitly-set-zero-in-custom-metadata-with-script/86529)

<div class="topic-metadata">

**Author:** [@codegeek](https://discourse.devontechnologies.com/u/codegeek)\
**Replies:** 7\
**Last updated:** [March 8, 2026, 2:38pm UTC](https://discourse.devontechnologies.com/t/explicitly-set-zero-in-custom-metadata-with-script/86529 "2026-03-08T14:38:41Z")

</div>

Hi all. I have a number of custom metadata properties, which I am trying to populate by means of an external JavaScript. Everything is working well except for zero-value numeric properties. For example, if my script att…

---

## [Script to Unzip Selected Item](https://discourse.devontechnologies.com/t/script-to-unzip-selected-item/86511)

<div class="topic-metadata">

**Author:** [@rkaplan](https://discourse.devontechnologies.com/u/rkaplan)\
**Replies:** 1\
**Last updated:** [March 5, 2026, 5:52pm UTC](https://discourse.devontechnologies.com/t/script-to-unzip-selected-item/86511 "2026-03-05T17:52:35Z")

</div>

One of the few features I miss in Devonthink is the ability to Unzip a folder directly without having to export the .zip, unzip it on the Desktop, and then re-import it. This script automates that process. Yes it was w…

---

## [Applescript to generate a txt file ASCII tree diagram](https://discourse.devontechnologies.com/t/applescript-to-generate-a-txt-file-ascii-tree-diagram/86439)

<div class="topic-metadata">

**Author:** [@drjforrest](https://discourse.devontechnologies.com/u/drjforrest)\
**Replies:** 3\
**Last updated:** [February 28, 2026, 3:28pm UTC](https://discourse.devontechnologies.com/t/applescript-to-generate-a-txt-file-ascii-tree-diagram/86439 "2026-02-28T15:28:23Z")

</div>

Hello DEVONthink Community, I thought I’d share this Applescript with you that I have been working on for some time to get right…because Applescript is so very helpful when it throws errors ;). What started as an attem…

[Next page](https://discourse.devontechnologies.com/tag/automation/3.md?match_all_tags=true&page=1&tags%5B%5D=automation)
