class SlidesApp method .getActivePresentation()

SlidesApp is the Apps Script service.

.getActivePresentation() is the method name you will see after a dot in your code.

What it does

Returns the presentation the user currently has open.

Why it's used

  • Update the deck the user is presenting right now.
  • Bound Slides scripts start here like sheet-bound tools.

Common errors

  • Forgetting parentheses on getActivePresentation. Write SlidesApp.getActivePresentation(), not SlidesApp.getActivePresentation or getActivePresentation by itself.
  • Skipping dots between chained calls. Each step needs a dot, like SlidesApp.getActivePresentation().
  • Adding spaces where they do not belong. Write SlidesApp.getActivePresentation(), not SlidesApp .getActivePresentation(), SlidesApp.getActivePresentation (), or SlidesApp . getActivePresentation().
  • Wrong capitalization. Use SlidesApp and getActivePresentation, not slidesapp or getactivepresentation.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about SlidesApp.getActivePresentation().

Browse the blog