Thanks - and also for the many posts of yours I've read to get this far!
Edit: Ouch - ok I'm having problems getting this to work
Can't get it to work in my batch file, so tried the GUI console and got the following:
> !mc:delete_images_list(mc:imglist(),{pretend=true,verbose=true})
ERROR: call failed:[string "mc:delete_images_list(mc:imglist(),{pretend=t..."]:1: attempt to index global 'mc' (a nil value)
stack traceback:
[C]: in function 'xpcall'
Q:\temp\chdkptp-r658-win32\lua\cli.lua:654: in function <Q:\temp\chdkptp-r658-win32\lua\cli.lua:649>
(...tail calls...)
[C]: in function 'xpcall'
Q:\temp\chdkptp-r658-win32\lua\cli.lua:244: in function 'execute'
Q:\temp\chdkptp-r658-win32\lua\gui.lua:678: in function 'action'
Q:\temp\chdkptp-r658-win32\lua\gui.lua:637: in function <Q:\temp\chdkptp-r658-win32\lua\gui.lua:635>
(...tail calls...)
[C]: in function 'MainLoop'
Q:\temp\chdkptp-r658-win32\lua\gui.lua:753: in function <Q:\temp\chdkptp-r658-win32\lua\gui.lua:726>
(...tail calls...)
Q:\temp\chdkptp-r658-win32\lua\main.lua:278: in main chunk
[C]: in function 'require'
[string "require('main')"]:1: in main chunk
(similar to the errors I was getting in CLI usage
)
Edit 2: I was forgetting to issue the mc:connect() etc commands first..............now working! Thank you