title: How to run google apps script externally from java application
body: <p>Is it possible to connect to google and run a google apps script from a desktop java application?  </p>
  
  <p>I found this info: </p>
  
  <p><a href="https://developers.google.com/appengine/docs/java/urlfetch/usingjavanet?hl=en#Simple_Requests_With_URLs" rel="nofollow">https://developers.google.com/appengine/docs/java/urlfetch/usingjavanet?hl=en#Simple_Requests_With_URLs</a></p>
  
  <p>It says that you can connect to google app engine from java application via HTTP or HTTPS using java.net.URLConnection, the page has some examples, but none to connect to google apps script.</p>
  
  <p>The reason I need to connect to google app script is because I have a firewall on my company so I can't connect to gmail via smpp or IMAP, so I want to send gmail mails from a google script. </p>
  
  <p>Thank you very much. </p>