Google Slides - how to automatically run a google add-on and apply custom layout? - google-apps-script

I'm currently working on the implementation of the AppScript add-on for Google Slides.
I want my add-on to start when the user opens a new presentation.
I want the add-on to change the layout of all slides, maybe there is a way to import custom layout from file?
Any ideas how to do it?

You could use the on open (simple or installabl) trigger to add a menu and to do some other tasks that doesn't require user authorization but not to change the layout of all slides as something like that requires authorization. For details see https://developers.google.com/apps-script/guides/triggers

Related

Adding starting splashing Animation to Google workspace Add -on

I'm creating a google workspace add-on to a organization.For styling purpose I want to add starting splash animation very similler to the Google map, keep and contact Add-on have.Can I get an idea about, that can be done to the third party add-on , that we are creating ?
Google Workspace add-on are pretty limited in terms of design you can do. And you won't be able - as of writing - to create a splash screen that disappear without user's interaction.
You can ask for such feature using Google's feedback form.

Google Slides API activating script on click of element

I am trying to create a branching scenario using google slides, the idea is that someone viewing the presentation can click on the buttons and see the outcome of their selections.
The first few slides it's easy, it's a 1 to 1 so I can just use the "link" feature in slides.
The tricky part is once you progress to slide 3. I want the slide they are directed to by clicking on the "course of action" options to be based on all the currently selected options.
So here is where I'm stuck - I need to figure out how to have an interaction (click) with the slide in presentation mode trigger a script.
Any suggestions on how to accomplish this in Google Slides?
At this time the Slides Service for Google Apps Script and the Google Slides REST API don't include a way to call a script on a click of an element. This feature is only included on Google Sheets (Clickable images and drawings in Google Sheets)
NOTE: The Google's official documentation very rarely includes a page about missing features. It could be possible that someone already submitted a feature request through the official Issue Tracker. If so, you could star that issue to get notifications about changes on it. Another place to monitor is the G Suite Developers Blog and the Google Apps Script release notes.

How to add a custom menu for google drive

As a part of project requirement I need to add a custom menu (context menu) to the google drive right click options.
As per my research google app script can help for creating a custom menu for google docs, google form and google sheet. However I haven't yet come across a way to add a custom menus for google drive.
I cannot use chrome extension as I need it to be all browser compatible.
Any ideas if it's even supported and possible.
Any help is appreciated!
Eventually I had to integrate an app with "Open With" option in Google Drive.
Apparently, context menus are not supported in Google Drive.
You cannot add custom context menus in Google Drive. The custom menus you read about in Docs, Sheets, etc are added in the menubar at the top of the editor, not into the right-click menu.

How to show images on text hover in google docs addon

I am new to google docs Add-ons. I am working on an add-on in which I need to show set of image on text hover like tooltip in html
I did not find a way to implement this after hours of googling. please help.
This is not possible.
The above because the Documents Service of Google Apps Script doesn't include "on hover" event / trigger or something similar
The only way is by using a dialog or sidebar and they can only be launched by clicking on a custom menu or by using google.script.run on a previously opened dialog / sidebar.
References
https://developers.google.com/apps-script/guides/doc
https://developers.google.com/apps-script/guides/triggers
https://developers.google.com/apps-script/guides/dialogs
Related
Show Popup of YouTube video within Google Doc

Custom sidebar addon for Google Docs

I am trying to write a simple add-on for Google Docs. It basically a list of items I want to have visible on the side when I am using Docs. I followed this simple tutorial.
I don't want to publish such a simple add-on unnecessarily. Is there a way that I could use it just within my Google Docs without publishing it ?
If you've just copied the sample code into your document's script, it already works there. To activate the script you have to reopen the document, then in the menus at the top click Custom Menu -> Show sidebar.
You only have to publish a script if you want to share your add-on with other users.
If you still have problems, take a look at Add-on Quickstart. It describes add-on creation process in details.