Hi,
I am trying to rename a project from command line using Lua. I was hoping that it was as simple as the following:
s = load_session ("/path/to/project/name/", "name")
assert (s)
s:rename ("new-name")
close_session()
But I get:
Error: /home/erik/PhpstormProjects/dingus/ardour/script/rename.lua:18: attempt to call a nil value (method 'rename')
I found a function called Session::rename(...)
in session_state.cc
which kind of led me to believe that it might work. It does not though.
So to phrase this into a question:
How do I rename an Ardour project/session using Lua?
Thanks in advance,
Erik