Jump to content
dvcrn

Alfred -> DEVONthink

Recommended Posts

Posted (edited)

Super simple workflow for interacting with DEVONthink.

 

1437544415_ScreenShot2018-05-20at0_37_11.png.aa7fc246639f7971ab2b91299ad88fb8.png

 

Use

 

- `ds` to search DEVONthink
- `dn` to create a new DEVONthink note

 

Also defines a `Import To DEVONthink` file action to quickly add files from Alfred to the DEVONthink Inbox. (Very useful with the File Selection shortcut from Alfreds Features -> File Search -> Actions to instantly open the currently selected file in Alfred)

 

1036029490_ScreenShot2018-05-20at1_15_36.png.da2ccda42519662e25c4b39bbeb945bc.png

 

Get it here: https://github.com/dvcrn/alfred-devonthink/releases

 

This workflow will auto-update itself when a new version is available. If you don't want this, open the workflow and remove the "Auto Update" node. 

 

TODO:

- Global hotkey to paste whatever is in the clipboard to DEVONthink

 

If you have other cool ideas that would make DEVONthink with Alfred even more useful, please let me know :)

Edited by dvcrn

Share this post


Link to post

Hi dvcrn,

 

Thank you for this Workflow, but it doesn't work for me. I'm running most recent version of DTPro, and Alfred, on macOS 10.12.6

When I type ds, the Alred window shows "DevonThink Search", but when I type anything else, it reverts to a Google search.

Please advise.

 

Thanks,

Matthew

 

Share this post


Link to post

Hi, dvcrn,

 

Thanks for the good workflow, but I have the same issue with mlondon.

Have we missed something or can you explain how it works more clearly?

 

Thanks

Tommy Huang

Share this post


Link to post

Hi, dvcrn,

 

Now the workflow is working like charm!! So great to have this workflow!! 

Nothing was changes before it's working?! Strange but very happy!!

Thanks!

 

Tommy Huang

Share this post


Link to post
Posted (edited)

Whoops, I forgot to turn on email replies so I didn't see these comments until now - sorry about that! It's turned on now. 

Is everything working ok now? The search command is using the spotlight index to search for DEVONthink metadata files without much magic, so if spotlight is doing it's job fine, you should find them. 

 

I also just pushed an update to replace the import commands with applescript which should make the workflow a good chunk more robust :)

I also included a auto update script independent of packal (since that seems to be dead now anyway). Check the first post for the updated workflow (that will update itself from now on) 

Edited by dvcrn

Share this post


Link to post

This is fantastic! Thank you so much, I've really wanted a better way to interact with DEVONthink in Alfred, way better than just setting up a custom search!

 

As an aside, I really like the Alfred theme you're using, any chance you could post it?

Share this post


Link to post
3 hours ago, chrisWhite said:

This is fantastic! Thank you so much, I've really wanted a better way to interact with DEVONthink in Alfred, way better than just setting up a custom search!

 

As an aside, I really like the Alfred theme you're using, any chance you could post it?

 

The theme in the screenshot is The Minimalist. I use the 'almost midnight' variant

Share this post


Link to post

It seems all workflows for Devonthink can't search those materials to be indexed by Devonthink. 

If it can do this, please tell me how to make it work?

Alternatively, is there any way to set a hotkey to start the Search Window of Devonthink?

 

I think this hotkey function is enough to search everything contained in Devonthink.

Share this post


Link to post

You can use applescript to access DEVONthinks search, something like:

tell application id "com.devon-technologies.thinkpro2"
	search "foo"
end tell

You can integrate that into a alfred workflow but I didn't have the time to play around with that yet 

 

I'm not sure if it's possible to open a search window directly, but you could use keyboard maestro (or possibly UI scripting with applescript) to activate DEVONthink and execute the "search" menu action

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×