Is there any plan to provide Google Apps script capability for the "Files | Publish to the web..." menu item in a google Document?
This has been asked before, but heck if I can find an answer. To be clear, I don't mean setting the sharing or viewability of the Document itself, I mean the thing where a web page representation of the Document with its own link is generated.
Thanks,
Brian
It is not possible directly with GAS. However, using the Document List API and URLFetch with oAuth, you can, in theory make a document public on the web. Publish to the web option, per se, isn't available though.
Please see the following links for information and help
How do I get an access token using UrlFetchApp with GAS
https://developers.google.com/google-apps/documents-list/#sharing_resources_with_the_public_the_rest_of_the_internet