Calling apps script function from drive UI -


i implemented function operates on file object in google drive(*). long story short: function dosomething(file) { ... } exists (in standalone google apps script) , tested.

i want call drive ui, e.g. using context menu -> open ... (but sensible means ok).

is there straightforward way achieve this? prefer not go through 'registering app in chrome store' whole shebang when need glorified macro myself.

i finished listening https://www.youtube.com/watch?v=0hvjmieb3ae comes closest far seems skip technical details of need.

(*) there rather frustrating repetitive per-file workflow within organization whereby 1 needs switch write accesses read-only, assign ownership given user change own rights read-only.

this can absolutely done in apps script. there bit of set-up. video posted 1 used figure out. when app attached drive ui registered mime-types have app in right-click menu.

i made barebones framework highly commented process. shows how handle cases of being installed chrome store , called launched chrome/chrome app launcher. can make copy of here:

https://script.google.com/d/1nrwcxtjzysjl2dmsnb3bhyyfjlebm02-ekusjug4v9abzlz3r_1yqctj/edit?usp=sharing

*note: assumes bit of apps script familiarity. '13 io videos first intro apps script i'm not bad going.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -