I’m currently experimenting with Drafts scripts. I wrote a script which reads the file names of all files in a folder. Afterwards the path and file extension is deleted from the string and the file names are put in a promt to select from.
Everything is basically working up until I hit 9 files in the folder. For some reason listContents does only show 8 files. If i remove one then it shows the 8 remaining. I could find nothing explaining this behaviour in the documentation or forums so far. Anyone else has experienced the same issue?
The code that generates the list is as follows
// Create cloud object
var fmCloud = FileManager.createCloud(); // iCloud
var header_list = fmCloud.listContents("./note_vault/Header Files");
p.message = header_list ;
Thanks for your help