r/GoogleAppsScript • u/resullins • Sep 29 '26
Question Bulk Find / Replace Hyperlinks in Multiple folders and file types
I've looked through some of the posts on this, and have found some close approximations to what I need, but don't know enough about coding to tweak. So I thought I'd start fresh.
I have a mix of Google Docs and Sheets in some project subfolders that all have a BUNCH of hyperlinks that have to get replaced twice a year. Currently, this process takes around 20 hours. I would like to write a script that will take a list from a "Project Info" sheet with a column for the old links and a column for the new links, and update everything. There are also a few instances of straight text replacement in these documents.
2
u/LunaFlowLab Sep 29 '26
A few things make link replacement harder than a normal find and replace, so here they are before the script:
Here's a starting point:
I checked the calls against Google's Apps Script docs but haven't run this on your files, so try it on a copy of one folder first.
1
u/wocobra Sep 29 '26
Write exactly your words into gemini or claude and it will return the script.