This became my afternoon coding challenge. It only took an hour to write, but quite a few more to get it to run correctly all the time (except for the “features” I haven’t found yet).
This uses the lua-scripts library files, so it needs at least the lib directory from the lua-scripts repository. If you have a full lua-scripts installation, then I recommend you add a testing subdirectory and put this in there, then add require “testing/filetether” to your luarc.
The module shows up on the left side below image information. Select the directory you want to monitor, the interval to sleep between checks, and view in darkroom if you want to view the imported file in darkroom, otherwise it just gets imported into lighttable.
There’s a lot of print statements in it, so if you have problems just run darktable with the -d lua switch and it should talk.
Any questions or bugs, let me know.
P.S. rename the file back to filetether.lua, since I had to add the .txt to get it to upload.
filetether.lua.txt (6.3 KB)