You are right!!!!!! I simplified the paragraph styles so the script works fine. I did not know that this script could work with normal paragraphs (without proper footnotes).
And… Yes, Would be great add to Footwork the ability to convert footnotes into endnotes!
Thank you very much for your help!