hi I'm writing some code to save email attachments in googledrive.
to do that I have to run a cycle paste the code
............
for (var x=0; x<threads.length; x++) {
var messages = threads[x].getMessages();
for (var y=0; y<messages.length; y++) {
//var file = folder.createFile(messages[y].GmailMessage);
var att = messages[y].getAttachments();
for (var z=0; z<att.length; z++) {
try {
// Copy the Gmail attachment to Google Drive
* var file = folder.createFile(att[z]);
<----------------------------------------ERROR!!!!!!!!*
// Wait for a minute to prevent timeout errors
Utilities.sleep(1000);
}
........
the code works but if I run it many times gives me the error message in
that line
come posso risolvere ?
grazie
--
You received this message because you are subscribed to the Google Groups
"Google Spreadsheets API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.