I create a google doc file and populate it from a presentation's notes. However, it puts the file in my root directory and not the directory of the presentation which is in a shared drive folder. I tired to move it but that did not work. Is there a way to create the document in the same folder as the slides? I have the folder ID. The code that I use to create it is:
`your text` let docname = SlidesApp.getActivePresentation().getName();
`your text` let doc = DocumentApp.create("Slide Notes - " + docname);
`your text` let body = doc.getBody();
I then put the notes from each slide into body
I tried moving it but it did not move. addfile and removefile no longer works
I believe your goal is as follows.
In this case, how about the following sample script?
Sample script 1:
When this script is run, a new Google Document is created in the same folder of the parent folder of the active Presentation.
Sample script 2:
As another approach, in this pattern, Drive API is used. So, please enable Drive API v3 at Advanced Google services.
References: