Do a script that return contents such as
let contents = []; Repository.query("//element(*, ametys:defaultContent)").forEach(content => contents.push(content)); return Content.toGridFormat(["title", "lastModified"], contents);
Edit one of the contents returned, the script will reexecute the script