javascript Google scripts create a document within a folder -


i have tried countless techniques, not able

docslist.createfile('example file', 'example file contents'); 

to create google document file. creates plain text file. have tried adding mime type. not work- think may bug in google. whatever file seems open in "viewer"

however there workaround, seems simple, sure there way using?

doc = documentapp.create('document name'); 

i cant folder.

thanks help.

yes possible. either try using driveapp (not docslist) create directly in folder. if wont work, create doc, add folder , remove root.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -