re: Fwd: [darktable-user] Is there a way to bulk import many folders at once?

2019-12-16 Thread Jean-Luc CECCOLI
Many thanks to both. Now I think I am going to paly with it and see what it offers me. Many, many thanks.   J.-Luc     > Message du 16/12/19 03:27 > De : "August Schwerdfeger" > A : "Darktable Users List" > Copie à : > Objet : Fwd: [darktable-user] Is there a way to bulk import many

Fwd: [darktable-user] Is there a way to bulk import many folders at once?

2019-12-15 Thread August Schwerdfeger
-- Forwarded message - From: William Ferguson Date: Sun, Dec 15, 2019 at 8:06 PM Subject: Re: [darktable-user] Is there a way to bulk import many folders at once? To: August Schwerdfeger lua searches for scripts in the ~/.config/darktable/lua directory, so you should make a lua

Re: [darktable-user] Is there a way to bulk import many folders at once?

2019-12-15 Thread August Schwerdfeger
The require line should just read 'require "Import"', not 'require "~/.config/darktable/Import.lua"'. -- August Schwerdfeger aug...@schwerdfeger.name On 12/15/19 2:32 PM, Jean-Luc CECCOLI wrote: > > OK... this is what I got : > >   > > *jean-luc@E-5530:~$ darktable -d lua* > *3,965593 LUA ERROR

Re: [darktable-user] Is there a way to bulk import many folders at once?

2019-12-15 Thread Jean-Luc CECCOLI
OK... this is what I got :   jean-luc@E-5530:~$ darktable -d lua 3,965593 LUA ERROR : /home/jean-luc/.config/darktable/luarc:1: module '~/.config/darktable/Import.lua' not found:     no field package.preload['~/.config/darktable/Import.lua']     no file

Re: [darktable-user] Is there a way to bulk import many folders at once?

2019-12-14 Thread August Schwerdfeger
I think the Lua script needs to have a '.lua' extension, and the line to bring it in should just read 'require "" ' (with no extension). You can run Darktable with the '-d lua' switch to display Lua errors in the terminal. -- August Schwerdfeger aug...@schwerdfeger.name On Sat, Dec 14, 2019,

Re: [darktable-user] Is there a way to bulk import many folders at once?

2019-12-14 Thread Jean-Luc CECCOLI
Hello,   I wanted to give it a try as my first step in learnig lua scripting. Moved my db to another place. Created a file named Import.in into ~/.config/darktable and containing the following lines :    local darktable = require("darktable")  importDirs = function()   

Re: [darktable-user] Is there a way to bulk import many folders at once?

2019-11-13 Thread Mark Heieis
LUA approach worked great. Thanks. On 2019-11-12 9:29 p.m., August Schwerdfeger wrote: If the "import directories recursively" checkbox in the import dialog does not fit your bill, the 'darktable.database.import' Lua function

Re: [darktable-user] Is there a way to bulk import many folders at once?

2019-11-13 Thread August Schwerdfeger
For a one-off, one just has to make a Lua script with an import line for each folder one wants to import local darktable = require("darktable") importDirs = function() darktable.database.import("/path/to/folder1") darktable.database.import("/path/to/folder2") ... end importDirs() and

Re: [darktable-user] Is there a way to bulk import many folders at once?

2019-11-13 Thread darktable
On Tue, 12 Nov 2019 23:29:26 -0600 August Schwerdfeger wrote: >If the "import directories recursively" checkbox in the import dialog >does not fit your bill, the 'darktable.database.import' Lua function >(https://www.darktable.org/lua-api/index.html#darktable_database_import) >can import a

Re: [darktable-user] Is there a way to bulk import many folders at once?

2019-11-12 Thread August Schwerdfeger
If the "import directories recursively" checkbox in the import dialog does not fit your bill, the 'darktable.database.import' Lua function (https://www.darktable.org/lua-api/index.html#darktable_database_import) can import a folder. If you have a text file with a list of the folders you want to

[darktable-user] Is there a way to bulk import many folders at once?

2019-11-12 Thread Mark Heieis
Is there a way to bulk import many folders at once rather than importing one folder at a time manually? Eg bulk import from the command line or LUA script or darktable feature I'm not seeing? Thanks. darktable