Reset All Text Styles in Google Docs Using Google Apps Script

If you’ve been editing a document in Google Docs, you may end up with various text styles, such as bold and italic, scattered throughout. For consistency and readability, you might want to remove these styles and reset everything to plain text. Manually clearing formatting in a long document can be tedious, but with Google Apps … Read more

Automatically Remove Numbered Prefixes from H3 Headings in Google Docs Using Apps Script

When working with structured documents in Google Docs, it’s common to start headings with a number and a period (e.g., “1. Introduction”). However, if you decide to remove these numbered prefixes from your H3 headings for a cleaner look, manually editing each heading can be time-consuming, especially in large documents. Thankfully, Google Apps Script offers … Read more

Convert Bolded Lines to H3 Headings in Google Docs Using Google Apps Script

In Google Docs, using bold text is a common way to highlight key points or section titles. However, if you’re looking to standardize your document formatting by turning bolded lines into proper headings, this can be a tedious task to do manually. Fortunately, Google Apps Script can help! In this post, we’ll walk you through … Read more

Remove Specific Phrases in Google Docs Using Google Apps Script

When working with large Google Docs, you may need to remove specific phrases that occur as standalone lines. These could be placeholders, outdated notes, or boilerplate text that no longer applies. Manually deleting these lines can be a hassle, especially if they appear throughout the document. Luckily, Google Apps Script provides an easy way to … Read more

Easily Remove Blank List Items from Google Docs Using Google Apps Script

Introduction If you work with Google Docs frequently, you’ve probably encountered documents with list items that contain nothing but blank spaces. These empty list items can clutter your document, disrupt its flow, and detract from readability. Manually cleaning them up can be time-consuming, especially in large documents. Fortunately, Google Apps Script provides a quick solution … Read more

Automate Cleanup in Google Docs: Removing Numbered Lines Using Google Apps Script

Introduction When dealing with text documents, especially in Google Docs, you might come across lines that follow a particular numbering format. For instance, in documents generated by automated tools or text imports, lines with just a number followed by a period (like “1.” or “2.”) can clutter up the content, making it harder to read … Read more

Live in Vancouver – Miami – Edmonton – London Laurence Svekis at DevFest

Laurence Svekis, a recognized Google Developer Expert (GDE) for Google Workspace, is known for his live speaking events that focus on empowering developers with Google Apps Script and AI integrations. Over the years, Laurence has shared his expertise in automating workflows, enhancing productivity within Google Workspace, and utilizing APIs to streamline development processes. Laurence’s talks … Read more

How to Clean Up H3 Headings in Google Docs with Apps Script

Formatting content in Google Docs can sometimes require manual adjustments that are both time-consuming and prone to errors, especially when working with large documents. One common formatting issue involves headings that start with unnecessary characters, such as colons, which can disrupt the visual flow and readability of your document. In this post, I’ll show you … Read more

How to Merge Paragraphs into H3 Headings in Google Docs Using Apps Script

Google Apps Script is a powerful tool that enables you to automate tasks and extend the functionality of Google Workspace apps, including Google Docs. In this blog post, we’ll explore a practical script that merges paragraphs into the preceding H3 headings and removes trailing colons from those headings. This can be especially useful for formatting … Read more

Understanding Logger.log in Google Apps Script

In Google Apps Script, the Logger class provides simple logging functionality that can help you debug your scripts by recording messages in the Google Apps Script log. This log can be viewed in the Apps Script editor under the “Executions” or “Logs” tabs. Basic Usage of Logger.log The Logger.log method is used to record messages. … Read more