Google spreadsheets: Make tools menu unavailable to editors - google-apps-script

My question:
Is it possible to make the Tools Menu in google spreadsheets unavailable for editors?
My users must modify some columns in a file so they must be editors; but they should not use commands from menu (in particular Tools menu).
thanks

Short answer is no.
Long answer : there is no way to modify the spreadsheet toolbar other than adding a custom menu.

Related

How can I change order of custom menu in Google Sheets?

I am creating custom menu items for Google Sheets.
On the picture from manual, "Custom Menu" is moved to the left of "Help" built in menu.
Whereas by default the custom menu is placed to the end (to the right).
I didn't find related methods in Menu class per se.
The reason is to call my scripts by keyboard shortcuts, moving through menu items.
So far the only customized shortcuts are available via useless inconvenient macro.
unfortunately, this is not possible in Google Sheet, yet.
if a macro is inconvenient you can perhaps use some 3rd party tools like AutoHotKey.com

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

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

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 create a secondary slide-out in Google Doc add on side bar in Google Apps Script

I have a Google Doc add-on that utilizes the sidebar: no problem there. When one uses the Google research add-on, there is an secondary slide out from the sidebar that shows a preview of a search result (see picture below) when clicked. I am hoping to replicate this behaviour, but I see nothing about it in the api regarding size and limits. I tried having a tooltip pop up on my links in the sidebar, but they appear cut off or under the main Google Doc palette. I have tried a bunch of other Google Doc add-ons to see if any of them replicate this functionality, but they don't. Before I spend hours on this, I want to first ask is anyone know if this is specific permission for Google's sidebar only, or can developers replicate this functionality?
The Research Tool is a direct integration with Docs and Presentations, it's not a Google Apps Script add-on. The freedom to "slide out" within the document is not available to add-ons today.
As one alternative, you could use an accordion affect to collapse your "first page" and overlay the result page, still within the bounds of the sidebar.
A second alternative would be to use a non-modal window, where you'd have more freedom. (resizing there requires client-server exchanges, but is doable)

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.