Hazel and DEVONthink 2 - Choosing a Target Database
In my previous post on using Hazel and DEVONthink together, I showed you a system I use to automatically get files and documents into the DEVONthink Pro Office Global Inbox.
Did you know, however, that is possible to import content directly into a database of your choosing? It DOESN’T have to just move to the Global Inbox?
Full credit to Alan Duncan of [ojisanseiuchi.com] for this nugget.
Here is how:
When you have configured your Hazel rules to identify the files that need to moved, add this AppleScript to the actions that will be carried out:
tell application id "com.devon-technologies.thinkpro2"
set img_ib to get record at "/Inbox" in database "Business"
import theFile to img_ib
end tell
This script will tell Hazel to take the content we have already identified and import it into my Business database. To change the target database, simply modify the name in the script.
Couldn’t really be any simpler at all could it?!
Thanks Alan.