-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: Unexpected token class (line 421, file "Code", project "GmailUtils") #14
Comments
I see a similar error if I turn on the new apps script runtime in GAS: |
I can't see how to create a branch to contribute here, but below is my updated code with two fixes for Apps Script V8: `/*
/**
var threads = GmailApp.search(query, 0, limit); /**
eachMessage(query, limit, function(message) { /**
eachMessage(query, limit, function(message) { /**
/**
/**
/**
if (!(messages instanceof Array)) { for (var m=0; m < messages.length; m++) {
} return Utilities.newBlob(html, 'text/html', name); /**
/**
/**
/**
/**
/**
/**
// locate all inline content ids // extract all inline images
}).filter(function(i){return i}); // process all img tags which reference "attachments" /**
/**
/**
/**
/**
/**
/**
/**
/**
function gettz_() { /**
/**
|
@lex3001 What you have to do is: Fork this repo, commit the changes to your forked repo, then click the "New pull request" button on your forked repo's page. |
Ah, thanks -- done. |
Thank you ! It works. |
You are right ! My bad. There is a merge request, but @pixelcog still has to merge it in the main repo ! |
Trying your sample code. Added both libraries, and then added this code.
function saveExpenses() {
GmailUtils.processStarred('label:Accounting_PDF', 5, function(message) {
});
}
Upon run, I receive this error:
SyntaxError: Unexpected token class (line 421, file "Code", project "GmailUtils")
Using version 4 of the GmailUtils and version 1 of the DriveUtils.
The text was updated successfully, but these errors were encountered: