This script:
draft.content = draft.content.replace("- [ ] ","- [ Migrated ] "); draft.update();
Does exactly what I want it to except it only does it for the first instance. If I keep running it will step through the whole draft. How can I get this to a one-step. What newbie error am I making? Thanks!
Change replace to replaceAll.
replace
replaceAll
draft.content = draft.content.replaceAll("- [ ] ","- [ Migrated ] "); draft.update();
Of course. Missed that one in the documentation. Works perfectly. Thank you!