1)Is there a Google appscript command that can convert a .gDraw to a .jpg?
2)Can a Google trigger be set to perform this conversion on a .gdraw file edit?
1) My answer so far (in google/pseudo code)
function gDrawTO_jpeg(){
var gDrawFile = DriveApp.getFilesByID('gDraw_fileID')
gDrawJpg = gDrawFile.getAs("image/jpg") // doesn't work due to current getAs() limits.
gDrawPdf = gDrawFile.getAs("application/pdf");} //doesn't work due to known glitch, link below
Glitch in converting file to pdf on Google: https://code.google.com/p/google-apps-script-issues/issues/detail?id=3579.
Is there possibly an obscure blob function workaround for this?
2) My answer so far:
function triggerSet(){
ScriptApp.newTrigger('gDrawTO_jpeg')
.forDocument('gDraw_fileID')
.onOpen()
.create();//returns error on this line}
Only works on google docs/sheets/forms, no success with gDraw's. Is there a blob work around?
**As a post-remark to this question, it would be great for gDrive/gDocs to have a feature or option to auto-save docs/sheets/gDraws in standard or non-Google formats (.doc/.xls/.jpg respectively, they have this feature manually but there are obvious various advantages to this being automated).