I'd like to trigger a script every time I view an email in gmail. Does anyone know if there a trigger for detecting this which i can bind to?
I'm open to doing this with any platform, not just google-apps-script.
I'd like to trigger a script every time I view an email in gmail. Does anyone know if there a trigger for detecting this which i can bind to?
I'm open to doing this with any platform, not just google-apps-script.
Short answer
At this time Google Apps Script doesn't have a triggers for Gmail events.
Explanation
On Google Apps Script there are three kinds of scripts, bounded, stand-alone and web apps, and two kinds of triggers, simple and installable
Scripts only could be bounded to documents, forms and spreadsheets.
The available simple triggers are:
The available installable triggers are:
Triggers by app
The triggers works on the following "environments":
Note: There are no simple nor installable that works on the Google Forms Viewer (response submission).
References