I can only get gscript to attach an excel formatted file from google drive. I need to be able to access the document without google drive. So I want the g script to attach the file, as an editable excel file, from the desktop, or another folder.
I've tried different ways of attaching the file, I can only get it to be as a PDF from the desktop, or excel from google drive. I need to get it in the email as an editable excel file from the desktop.
var file = DriveApp.getFileById('xxxxx');
GmailApp.sendEmail(emailAddress, subject, body, {cc: copy, attachments:
[file]});
It's sending the file via drive, i'd like to circumvent that by just getting the file from a folder or my desktop.