File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
google-apps-script/speaker-notes Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ # Speaker Notes 🐢
2+
3+ [ Export Speaker Notes from Google Slides] ( https://www.labnol.org/code/download-speaker-notes-google-slides-200710 )
Original file line number Diff line number Diff line change 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+ } ;
You can’t perform that action at this time.
0 commit comments