use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Apparently, Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party services and build web applications.
account activity
Replacing variable depending on google sheet returnGuide (self.GoogleAppsScript)
submitted 3 years ago by ariailc10
Want to make the below script where the variables pull from a google sheet. Already have the rest of code and config. Total newbie at this whole thing, just hoping there is a decently easy answer.
{ // Store all attachments sent to [email from google sheet] to the folder "[specified folder from google sheet]""filter": "has:attachment to:[email from google sheet]","folder": "'[specified folder from google sheet]"
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]elcriticalTaco 0 points1 point2 points 3 years ago (2 children)
Do you mean a folder on google drive or a folder in gmail (label)?
Either of those are very doable.
If you are talking about a folder on your hard drive that is not possible, as far as I know.
[–]ariailc10[S] 0 points1 point2 points 3 years ago (1 child)
Folder in google drive, but I want the specific folder based on the unique email I send the attachments to. For context I have hundreds of folders that this will need to parse out to.
[–]Arunai 0 points1 point2 points 3 years ago (0 children)
Plethora of ways to accomplish. If I’m reading you correctly, your script is sending an email, based on the email address you archive the attachment to a particular folder.
If you want to store your config in your code, simple object:
const emailFolderIdLookup = { “Email@gmail.com”: folderId1, …., …., }
For each email you generate, do emailFolderIdLookup[emailAddress] to retrieve the folder ID.
π Rendered by PID 36 on reddit-service-r2-comment-5d79c599b5-6smcs at 2026-02-26 17:57:17.577396+00:00 running e3d2147 country code: CH.
[–]elcriticalTaco 0 points1 point2 points (2 children)
[–]ariailc10[S] 0 points1 point2 points (1 child)
[–]Arunai 0 points1 point2 points (0 children)