How to interact with Google Docs List using Apps Script?

Google recently added a new feature to Apps Script "ability to interact with Google Docs List," with which "scripts can create, rename, or move files and folders in Google Docs. In addition, scripts can now create, modify, and clear plain-text files and search through your documents for a specified query string. For instance, take a […]

Google recently added a new feature to Apps Script "ability to interact with Google Docs List," with which "scripts can create, rename, or move files and folders in Google Docs. In addition, scripts can now create, modify, and clear plain-text files and search through your documents for a specified query string. For instance, take a company whose website is hosted on Google Sites. They've a Specials page where they want to list seasonal sales depending on upcoming holidays. They store details about seasonal sales in plain-text files saved in their GDL. By using GDL and and Sites services within Apps Script along with time-based triggers to run the script once per day, they can keep their Specials page updated automatically. If this script is set up to run using a trigger that calls it at the same time each day, then the Specials page will be kept automatically up-to-date," Google explains.

More Info: tutorial | DocsList Service documentation

[Source]