Complete the steps described in the rest of this page, and in about five minutes you'll have created a Google Slides add-on that adds a progress bar to your presentation. You can also learn more about this Slides add-on and how it works from the video on the right.
Set it up
- Create a new Google Presentation.
- From within your new presentation, select the menu item Tools > Script editor. If you are presented with a welcome screen, click Blank Project.
Delete any code in the script editor and rename
Code.gs
toprogress.gs
.
- Select the menu item File > Save all. Name your new script "Progress Bar Quickstart" and click OK. The script's name is shown to end users in several places, including the authorization dialog.
Try it out
- Switch back to your presentation and reload the page.
- After a few seconds, a ProgressBar sub-menu appears under the Add-ons menu. Click Add-ons > ProgressBar > Show Progress Bar.
- A dialog box indicates that the script requires authorization. Click Continue. A second dialog box requests authorization for specific Google services. Click Allow.
- A progress bar appears. To remove the progress bar, click Add-ons > ProgressBar > Hide Progress Bar.
Publish
Since this is an example add-on, our tutorial ends here. If you were developing a real add-on, the last step would be to publish it for other people to find and install.
Learn more
To continue learning about how to extend Google Slides with Apps Script, take a look at the following resources: