# Alfred Workflow for DT 3.x

**URL:** https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778
**Category:** DEVONthink
**Tags:** automation, devonthink3
**Created:** [May 1, 2019, 2:49pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778 "2019-05-01T14:49:31Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![mpco](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@mpco](https://discourse.devontechnologies.com/u/mpco)
#### Post date: [May 1, 2019, 2:49pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/1 "2019-05-01T14:49:31Z")

</div>

[The workflow](https://github.com/mpco/AlfredWorkflow-DEVONthink-Search) has been updated for DT 3.x.

## Features & Usage

- Type `dnt + keywords` to search in all opened databases in Alfred.
- Type `dnts + keywords` to search in DEVONthink window.
- Type `dnd` to choose which datebase to search
  - Press `Enter`, then type in `keywords` to search in the chosen database.
  - Press `⌘Command + Enter` to list all tags in the database, then choose a tag and press `Enter` to list all documents which have the tag.

- Type `dnm + tag1, tag2, ...` to list all documents which have these tags in all database. **Tags inputed must be exact. For example, Tag `aBcD` can’t be inputed as `aBc` or `abcd`**
- Actions for Workspace:
  - Type `dnw` to list all workspaces, press `Enter` to load the selected workspace.
  - Type `dnwa + WorkspaceName` to save current workspace named `WorkspaceName`.

---

<div class="post-metadata">

### Author: ![Cassady](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cassady/32/8320_2.png) [@Cassady](https://discourse.devontechnologies.com/u/Cassady)
#### Post date: [May 1, 2019, 3:35pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/2 "2019-05-01T15:35:45Z")

</div>

Thank you very much for this – works a charm!! 👍🏻

---

<div class="post-metadata">

### Author: ![curlypaws](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/curlypaws/32/8969_2.png) [@curlypaws](https://discourse.devontechnologies.com/u/curlypaws)
#### Post date: [May 1, 2019, 6:06pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/3 "2019-05-01T18:06:05Z")

</div>

Yes, works beautifully - thanks very much for your work on this. 😃

---

<div class="post-metadata">

### Author: ![lutefish](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/l/958977/32.png) [@lutefish](https://discourse.devontechnologies.com/u/lutefish)
#### Post date: [May 1, 2019, 8:03pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/4 "2019-05-01T20:03:04Z")

</div>

Brilliant - thanks for updating it so quickly for the v3 beta.

---

<div class="post-metadata">

### Author: ![rff](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rff](https://discourse.devontechnologies.com/u/rff)
#### Post date: [May 9, 2019, 11:28pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/5 "2019-05-09T23:28:59Z")

</div>

Thanks for the quick update. Love it.

But: the list tags command seems to be broken for me.

Anybody else?

---

<div class="post-metadata">

### Author: ![Cassady](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cassady/32/8320_2.png) [@Cassady](https://discourse.devontechnologies.com/u/Cassady)
#### Post date: [May 10, 2019, 4:11am UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/6 "2019-05-10T04:11:13Z")

</div>

As in, the option to view all the files with a specific tag? If so – working just fine this side!

---

<div class="post-metadata">

### Author: ![rff](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rff](https://discourse.devontechnologies.com/u/rff)
#### Post date: [May 10, 2019, 11:26am UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/7 "2019-05-10T11:26:44Z")

</div>

No, I dont get to see the list of tags at all

This part dosnt work for me  
Press `⌘Command + Enter` to list all tags in the database,

---

<div class="post-metadata">

### Author: ![mpco](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@mpco](https://discourse.devontechnologies.com/u/mpco)
#### Post date: [May 10, 2019, 1:18pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/8 "2019-05-10T13:18:38Z")

</div>

Look at this issue in github repo: [https://github.com/mpco/AlfredWorkflow-DEVONthink-Search/issues/7](https://github.com/mpco/AlfredWorkflow-DEVONthink-Search/issues/7)

---

<div class="post-metadata">

### Author: ![rff](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rff](https://discourse.devontechnologies.com/u/rff)
#### Post date: [May 13, 2019, 5:14pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/9 "2019-05-13T17:14:18Z")

</div>

works no as expected. actually, dont know why. Did a complete reinstall of DT3 (and kicked DT2 completely…)

Thanks again for ur help

---

<div class="post-metadata">

### Author: ![arkaiggoldfinch](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/arkaiggoldfinch/32/8314_2.png) [@arkaiggoldfinch](https://discourse.devontechnologies.com/u/arkaiggoldfinch)
#### Post date: [May 22, 2019, 1:49pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/10 "2019-05-22T13:49:21Z")

</div>

Hi all — Thrilled to see the updated workflow. When I download the zip from Github, the folder, once unzipped, doesn’t appear to contain an installer that I can click on to open the workflow in Alfred’s preferences. Instead, there’s simply a list of the contents of the workflow (workspace.py, search.js, info.plist, icon.png, getTagsList.py and so on… but no installer.) I’ve seen this happen in downloading a few other workflows in the past and haven’t found a way around it. I feel like I’m missing something obvious here. Any ideas? Thanks!

---

<div class="post-metadata">

### Author: ![mpco](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@mpco](https://discourse.devontechnologies.com/u/mpco)
#### Post date: [May 22, 2019, 2:27pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/11 "2019-05-22T14:27:46Z")

</div>

1. Open the releases webpage of Github repo: [https://github.com/mpco/AlfredWorkflow-DEVONthink-Search/releases](https://github.com/mpco/AlfredWorkflow-DEVONthink-Search/releases)

2. Click the `DEVONthink.Search.alfredworkflow` file to download.

---

<div class="post-metadata">

### Author: ![scrollsgeek](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@scrollsgeek](https://discourse.devontechnologies.com/u/scrollsgeek)
#### Post date: [May 22, 2019, 10:46pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/12 "2019-05-22T22:46:24Z")

</div>

I love the workflow—thank you very much. Is there any chance it will be expanded to include an option to import a file into specified locations in DEVONthink databases?

---

<div class="post-metadata">

### Author: ![mpco](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@mpco](https://discourse.devontechnologies.com/u/mpco)
#### Post date: [May 24, 2019, 8:28am UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/13 "2019-05-24T08:28:52Z")

</div>

Importing files only need to drag it into DNT. Why need to use Alfred workflow?

---

<div class="post-metadata">

### Author: ![scrollsgeek](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@scrollsgeek](https://discourse.devontechnologies.com/u/scrollsgeek)
#### Post date: [May 24, 2019, 12:36pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/14 "2019-05-24T12:36:42Z")

</div>

Yeah, I would have said the same thing, but this kind of import was part of another workflow and I found it saved me a lot of time to find, collect, and move files to their destinations without having all the manual labour and clicking and dragging. The whole point of Alfred is to cut through that kind of tedium.

---

<div class="post-metadata">

### Author: ![mpco](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@mpco](https://discourse.devontechnologies.com/u/mpco)
#### Post date: [May 26, 2019, 7:30am UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/15 "2019-05-26T07:30:28Z")

</div>

Can you describe the importing function you want ? I’ll try to make it.

---

<div class="post-metadata">

### Author: ![scrollsgeek](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@scrollsgeek](https://discourse.devontechnologies.com/u/scrollsgeek)
#### Post date: [May 27, 2019, 5:16pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/16 "2019-05-27T17:16:25Z")

</div>

Sure—basically I was using brunocbmr’s Devonthink browser workflow: [https://github.com/brunocbr/dtp-browser-workflow](https://github.com/brunocbr/dtp-browser-workflow)

Although I’ve been able to tweak most devonthink workflows to work with version 3, I don’t understand his workflow well enough to make it work. The “move to devonthink” file action is part I was using regularly.

---

<div class="post-metadata">

### Author: ![seishonagon](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/seishonagon/32/4962_2.png) [@seishonagon](https://discourse.devontechnologies.com/u/seishonagon)
#### Post date: [May 30, 2019, 9:25pm UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/17 "2019-05-30T21:25:31Z")

</div>

This is not directly Alfred, but I’m pretty sure they could be ported: I have three KM workflows to do just that. You press a key and you get a selection of groups or databases which you can then select using a “Spotlight” like interface.  
Your selected file is then moved to DT3.  
I use this ALL THE TIME.

Feel free to use the scripts to do something similar!  
Here’s a link to the KM forum post: [https://forum.keyboardmaestro.com/t/a-moderately-useful-devonthink-import-macro/13478](https://forum.keyboardmaestro.com/t/a-moderately-useful-devonthink-import-macro/13478)

---

<div class="post-metadata">

### Author: ![scrollsgeek](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@scrollsgeek](https://discourse.devontechnologies.com/u/scrollsgeek)
#### Post date: [May 31, 2019, 12:16am UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/18 "2019-05-31T00:16:16Z")

</div>

Thanks, this is great!

---

<div class="post-metadata">

### Author: ![bshapiro84](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/b/e8c25b/32.png) [@bshapiro84](https://discourse.devontechnologies.com/u/bshapiro84)
#### Post date: [June 3, 2019, 8:18am UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/19 "2019-06-03T08:18:02Z")

</div>

I actually got it working with DT3 and Alfred 4. I just had to change in the applescript file the app id to .think3 and reload the cache.

---

<div class="post-metadata">

### Author: ![EternalSummer](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/e/3da27b/32.png) [@EternalSummer](https://discourse.devontechnologies.com/u/EternalSummer)
#### Post date: [February 29, 2020, 7:32am UTC](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778/20 "2020-02-29T07:32:39Z")

</div>

Thanks. Its work on Dt3. Its great!

[Next page](https://discourse.devontechnologies.com/t/alfred-workflow-for-dt-3-x/46778.md?page=2)
