I have a Google form. When submitted, the responses go to a Google sheet. I currently have a python script that polls the Google sheet looking for new submissions and doing whatever it has to do when it finds a new submission. Instead of constantly polling the sheet, I would like to call my script after a trigger like onSubmit(). Since the Google apps scripts runs on Google's servers, is there anyway to do this given my script is on my local machine?
I'm looking for something like
function onSubmit(e) {
runMyScript("/path/to/script.py")
};