Hazel Run for Importing into specific Database

In the past I have used an apple script to import files into my databases but with the beta its broken. Trying to see where I went wrong. Here is the new script only I changed was the application ID. Am I missing something.

tell application id “DNtp”

set img_ib to get record at “/Inbox” in database “Financial”

import theFile to img_ib

end tell

  1. This is absolutely a guess…but looking at DT3 structure, you might try …record at “/Financial” in database “Inboxes”

  2. Have you tried the new Smart Rules? You can get away from scripting now…Smart Rules works much like Hazel, but inside DT3. I have a series of rules that look in the Inbox (the global one that Hazel sees) for a filename match and “on import” of a matching file, moves the file to the destination folder.

You can get away from scripting now…

Or you can continue using scripting as a powerful action in smart rules, using the Execute Script action :slight_smile: :wink:

Since you’re getting the Inbox, use…

tell application id "DNtp"
set img_ib to incoming group of database "Financial"
import theFile to img_ib
end tell

Thanks I ended up just moving directly to the inbox, then setting up a smart rule based on the tags I was added through hazel.