I havn’t tested anything, everything I’m writing here is wild guessing. Perhaps @wpfergusoncan test it on his Windows machine.
What doesn’t work?
Have you created a new file and then require this file in the luarc? Like this:
First of all you should make dt local to not get into conflicts with other scripts.
local dt = require “darktable”
I think you need to escape the “” like this:
Is a new film created with the name “D:\imgee”? (It is interesting, that we have no script in the git repository, that uses “films.new”. So this is not the best tested function.)
And here again I think you need to escape the “” like this:
To check error messages you can run dt from the command line like this:
C:\Program Files\darktable\bin>darktable.exe -d lua
The logs are then here written: