getUI in Drive

189 views
Skip to first unread message

Paul Armstrong

unread,
Aug 27, 2022, 6:42:33 PM8/27/22
to Google Apps Script Community
Hi
Is anyone aware of a way to get a handle to the UI while running inside a Drive context?

A method that is the same as DocumentApp.getUI() and Spreadsheet.getUI() but isde of Drive (there is no DriveApp.getUI). 

Thank you
Pail

DimuDesigns

unread,
Aug 28, 2022, 8:10:24 AM8/28/22
to Google Apps Script Community
Looks like you can only do that with Google Docs, Slides, Forms and Sheets.

You can create a Google Workspace Add-on (distinct from Editor Add-ons) for Google Drive and leverage CardService. But you'll be limited to a handful of widgets and constrained to a 300px width sidebar to the right of the UI.

Another alternative is to create a Google Chrome extension to inject custom elements into the webpage (but that's outside the realm of Apps Script).

Paul Armstrong

unread,
Aug 29, 2022, 5:39:22 PM8/29/22
to Google Apps Script Community
Hi
Thanks for the input. I agree; I don't think it is [easily] possible. 

Reply all
Reply to author
Forward
0 new messages