google-apps-script

How do I edit scopes? // Google Classroom control permission scopes in google apps scripts for student access

时光总嘲笑我的痴心妄想 提交于 2021-02-07 04:01:52
问题 I am a high school teacher writing a Google Apps Script against Google Classroom. I want to create a spreadsheet like view of my students grades that my students can access with their credentials. I have successfully written the code so that I can run it with my privileges by explicitly placing the student's Id in the code. Additionally, I have successfully written the code in Python where I can explicitly set just the two scopes a student needs to access this (and only this) information.

Google Picker - Return the File ID to my Google Script

≡放荡痞女 提交于 2021-02-07 03:54:33
问题 I have a fairly basic spreadsheet that uses some Google Scripts to accomplish various tasks. I was trying to cleanup the interface for the end user, and decided to implement the Google Picker. Originally the user had to manually import a CSV into the spreadsheet. The new goal here is to select the CSV via the Google Picker, upload it, import it, then delete it. I already have all the code working to import it and delete it. I just worked up the code for the picker, and it seems to work fine.

Google Picker - Return the File ID to my Google Script

筅森魡賤 提交于 2021-02-07 03:53:26
问题 I have a fairly basic spreadsheet that uses some Google Scripts to accomplish various tasks. I was trying to cleanup the interface for the end user, and decided to implement the Google Picker. Originally the user had to manually import a CSV into the spreadsheet. The new goal here is to select the CSV via the Google Picker, upload it, import it, then delete it. I already have all the code working to import it and delete it. I just worked up the code for the picker, and it seems to work fine.

Google Picker - Return the File ID to my Google Script

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-07 03:48:58
问题 I have a fairly basic spreadsheet that uses some Google Scripts to accomplish various tasks. I was trying to cleanup the interface for the end user, and decided to implement the Google Picker. Originally the user had to manually import a CSV into the spreadsheet. The new goal here is to select the CSV via the Google Picker, upload it, import it, then delete it. I already have all the code working to import it and delete it. I just worked up the code for the picker, and it seems to work fine.

Automatically convert emails with a Gmail label to PDF and send it to an email address

廉价感情. 提交于 2021-02-06 13:58:41
问题 I am trying to automatically save the receipts (from Amazon) I receive in GMail to Dropbox. So I have written a script that: automatically select emails with a certain label converts the body of the email to html converts the html to pdf email the pdf of the body and attachment to IFTTT (which automatically saves the attachments to dropbox) deletes the temporary files removes the label The script works and generates the bodydochtml, but the PDF conversion and email don't work. I am staring at

Automatically convert emails with a Gmail label to PDF and send it to an email address

元气小坏坏 提交于 2021-02-06 13:57:09
问题 I am trying to automatically save the receipts (from Amazon) I receive in GMail to Dropbox. So I have written a script that: automatically select emails with a certain label converts the body of the email to html converts the html to pdf email the pdf of the body and attachment to IFTTT (which automatically saves the attachments to dropbox) deletes the temporary files removes the label The script works and generates the bodydochtml, but the PDF conversion and email don't work. I am staring at

add-on with LIMITED auth cannot open sidebar

坚强是说给别人听的谎言 提交于 2021-02-06 12:47:42
问题 I have a Google docs add-on which is programmed to open the sidebar as soon as the document is open. Of course this requires the add-on to be installed and enabled in the document. I see that, since a week, the sidebar auto open feature, which is very useful in our use case, no longer works. In StackDriver logs I see this report : onOpen(): {authMode=LIMITED, source=Document, user=} publi-2.0.72-2017-11-27-18-57 [this is the publication version tag] 2017-11-27T18:02:50.126Z : show menu 2017

How do I fix charset problems in .gs script?

五迷三道 提交于 2021-02-06 09:30:56
问题 I have a problem with charsets. I parsed a csv file in google-app-engine and I'm posting to an uiapp table. But I checked special characters like áéíóú and those are not well displayed (?square symbol). When I was setting up my code I played writing the string imported to a google docs document and it worked the same. some advice please? I search for: a global charset definition to the code. or string var transformation that makes the chars appear like I want to. (avoiding html &number

How do I fix charset problems in .gs script?

白昼怎懂夜的黑 提交于 2021-02-06 09:27:06
问题 I have a problem with charsets. I parsed a csv file in google-app-engine and I'm posting to an uiapp table. But I checked special characters like áéíóú and those are not well displayed (?square symbol). When I was setting up my code I played writing the string imported to a google docs document and it worked the same. some advice please? I search for: a global charset definition to the code. or string var transformation that makes the chars appear like I want to. (avoiding html &number

Email via Google Apps Script from another email address

南楼画角 提交于 2021-02-06 09:12:23
问题 I'm familiar with how to send emails via Google Apps Script (http://code.google.com/googleapps/appsscript/articles/sending_emails.html). It's super cool. But is there a way I can email from Apps Script from another email address that I have access to? It seems like I can specify a reply to address, but the user still sees the email as from my primary user account, I believe. Example: My email is user@domain.com, but I'd like to send the email from event@domain.com from the Apps Script