Skip to content

Commit 0ab7f93

Browse files
committed
Speaker Notes
1 parent dc4a21d commit 0ab7f93

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Speaker Notes 🐢
2+
3+
[Export Speaker Notes from Google Slides](https://www.labnol.org/code/download-speaker-notes-google-slides-200710)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Extract Speaker Notes from Google Slides
3+
*/
4+
5+
const speakerNotes = () => {
6+
const notes = SlidesApp.getActivePresentation()
7+
.getSlides()
8+
.map((slide) => {
9+
return slide.getNotesPage().getSpeakerNotesShape().getText().asString();
10+
})
11+
.join('\n');
12+
13+
// Create a file in Google Drive for storing notes
14+
const file = DriveApp.createFile('Speaker Notes', notes);
15+
16+
// Print the file download URL in the Logger window
17+
Logger.log(file.getDownloadUrl());
18+
};

0 commit comments

Comments
 (0)