Sorry if I have missed this in other posts but I am new(ish) to DEVONthink and wanted a simple smart rule to export the relevant tagged files into a specific macOS folder.
I can build the rules to find the files I want to export but can’t seem to find an action to export the files.
Can anyone point me to how I can do this?
The background to this, is that I have multiple devices running DT but want certain tagged files (PDFs) to be exported out of DT on an “always running” Mac, so that some other downstream processing by 3rd party apps & users can be performed.
I would find this useful as well. There are things I need to make accessible to others via Dropbox. At the moment, I work on the DB folder, which is indexed in DT. It would be nicer to work in DT and have a smart rule exporting things, creating automatic copy of a group in an external folder.
Here is my use case: I have a database with scanned documents - pdf files for tax purposes (invoices, bank statements, receipts). When a new one comes in, it is renamed (smart rule with RE) and then (ideally) copied to an external folder (in Dropbox, same name of the group in DT). My tax advisor has access to the Dropbox folder. (With password it may require probably Keyboard Maestro?).
Initially, I manually copied the files from DT into the Dropbox folder. Then at some point it felt more convenient to scan directly to Dropbox (either with the Dropbox scan app or Readdle’s Scanner Pro apps workflows. For some time, I then indexed those Dropbox folders in DT.
When the indexing of the Dropbox folder and the smart rule for extracting dates and renaming caused problems, I stopped using DT for this purpose and deleted the tax database. Having an export of files, as a copy, would allow me to return to DT as the primary tool to manage this use case, having Dropbox as a secondary place to give people access to some files.
undefined is actually not an error here but just the result of running the script. Since it does nothing …
As to your question: The function working on the current selection looks like the one below. It’s of course not very elegant to hard-wire the target folder, instead it could ask the user for it, at least in the stand-alone script.