This is fantastic. Thanks so much! Between your script and the examples in the Drafts scripting documentation, I think I see what’s going on and how to modify things still more.
For example, if I want to man’ipulate the existing content of a file (eg, to insert the new material after the old but before my end-of-file metadata), I would modify filecontent
from your script …
One question: I see the Dropbox write
function has parameters “overwrite” and “add” — i get what overwrite does. Does “add” work like Drafts’ append mode, by adding to an existing file if there is one, or does it add (create) a new/second file if it successfully finds an existing one?
Thanks again!