I´m trying to copy each new imported document from my central Inbox to a second folder (in this case my Dropbox folder) as I want to make all my newly imported documents available via Dropbox to another person.
I tried different ways but didn´t found the right way? Could someone guide me?
Please post screenshots of your smart rule (trials) and the code of your scripts (trials). “I tried different things, and they didn’t work” doesn’t tell us anything.
@chrillek I want to start over because it just didn´t work. I read through the notes of this thread but that didn´t seem to include a working solution for me (yet) " Folder Action import from Dropbox"
Note that I’m using this script because it is the most simple. If you intent to have documents send to this folder using other processes like OCR it may be that you are better of with the OCR script of DEVONthink. That script will wait for incremental updates on the file and only start after a stable period.
Create a folder named Import at the location of your choice.
Start the application Folder Actions Setup
Using the + at the bottom add the folder Import to the monitored folder.
On the prompt select the script Import & Copy & Delete.scpt.
In the Finder, select the Dropbox folder you’re sharing. Then with the Option key held, select Edit > Copy … as Pathname. Paste that in the documentDestination line.
So now you just drop files into the group in DEVONthink and copies will be exported to the external Finder folder. Simple
PS: These are copies of the files. There is no connection with your documents in DEVONthink.
PPS: Yes, there will be a DEVONtech_storage file that is created with the export. These are harmless and can be ignored. But if the person you’re sharing with is also using DEVONthink, they could be used to transport metadata about the exported files.
Thank you again for your help, I tried the script and it seems to work, BUT it doesn´t seem to stop, it re-exports the same file over and over until I quit DEVONthink exporting the document to the designates folder (each export add a -1 to the filename).
The Tag is added to the document, but it seems the rule doesn´t seem to stop after its first export. Any ideas?
Is the designated folder indexed in the same database? That could be the cause of your issue, since the exported files match the smart rule criteria too.
And @m.korthaus, that is even less advisable. Do you really want to export every file in every database? I would strongly recommend you change the Suchen in to a more focused location per my instructions. I would also add a Date Added is This Hour criterion to further restrict the matched items.