0
votes

I'm new to Google apps script.

I can create a number of documents in Google Drive via a script and add content. I would also like to publish them via a script and record the published URL. Is this possible?

I can see an old answer from 2012 "Publish to the web" for Document in Google Apps Script?

1

1 Answers

0
votes

You can create all your content in a publicly shared folder, then once you have the folder's ID, you can create a straightforward base URL (e.g. https://googledrive.com/host/[folder ID]/) and simply append the newly created file names. I asked a question related to this topic a few days ago.

Conversely, you can set the permissions for each file you create then get the download URL's for them individually using getDownloadUrl().