I wrote a script to initialize a folder with two files. For reference the script can be found here: https://codeberg.org/bjoern/qownnote-scripts/src/branch/master/scripts/projectfolder/projectfolder.qml
I would expect that after calling the script two files "Overview.md" and "Next Steps.md" will be created.
Depending in the timing only "Next Step.md" will exists after running the script. This happens because initially the newly created file will have a filename like "Note 2019-10-30T21.32.42", then the content will be added and in a third step the file will be renamed according to the first line of the content. Before the rename took place the script already moved on to create the second file. If this is within the same second, the second file will be named "Note 2019-10-30T21.32.42" as well and overwrite the first file.
The problem could be solved if the file would be created directly with the final filename or allow the developer to specify a temporary filename as a second parameter when calling createNote()
download my script and execute it in an empty folder.
Thank you for reporting. Will be fixed today.
createNote if it wasThere now is a new release, could you please test it and report if it works for you?
I tested it and it works great! Thanks a lot! :smile:
Great, thank you for testing!
Most helpful comment
Thank you for reporting. Will be fixed today.