10-06-2024, 03:57 AM
Hi all
I want to iterate the files of a folder.
As I'm new to Appli I'm still finding my feet, so I thought I'd try and just show the "list" in an answer dialog in way of debugging, as I can't see a way to examine this during script execution. But this script fails for reasons I can't really understand:
the error I'm getting is:
Looking at the documentation for List Files, it seems this only works for folders within the Documents folder (is this true?)
Moving said folder into the documents folder produces the same error...
Extracting the folder name using get item from variable (for the folder that is in /Documents) and using that with list files instead of the path produces the same error...
Grateful for explanation as to why this isn't working (I presume this isn't a bug and I'm "doing it wrong"), and more importantly, how I can iterate files of a folder
Thanks in advance,
Stam
I want to iterate the files of a folder.
As I'm new to Appli I'm still finding my feet, so I thought I'd try and just show the "list" in an answer dialog in way of debugging, as I can't see a way to examine this during script execution. But this script fails for reasons I can't really understand:
the error I'm getting is:
Looking at the documentation for List Files, it seems this only works for folders within the Documents folder (is this true?)
Moving said folder into the documents folder produces the same error...
Extracting the folder name using get item from variable (for the folder that is in /Documents) and using that with list files instead of the path produces the same error...
Grateful for explanation as to why this isn't working (I presume this isn't a bug and I'm "doing it wrong"), and more importantly, how I can iterate files of a folder
Thanks in advance,
Stam