Manage Docs Versions and History comparing How to be more productive with Google Workspace Docs
Manage Docs Versions and History comparing How to be more productive with Google Workspace Docs
Google Apps Scripts and Web Development Tutorials and Resources by Laurence Svekis
Manage Docs Versions and History comparing How to be more productive with Google Workspace Docs
Highlight emails in a Doc using Regex on Doc Body Contents Select all matching results from a Regex for email patterns. Creates an array of the emails contained in the doc, then applies styling to the email. Highlight the matching results with a yellow background and black text. function onOpen(){ DocumentApp.getUi() .createMenu(’emails’) .addItem(‘Highlight’,’highlighter’) .addToUi() } … Read more
Copy All Images from Doc into your Google Drive Example will extract all the images from a Google Doc and make copies of them directly into your Google Drive. function onOpen(){ DocumentApp.getUi() .createMenu(‘images’) .addItem(‘creator’,’getImgs’) .addToUi() } function getImgs(){ const doc = DocumentApp.getActiveDocument(); const body = doc.getBody(); const images = body.getImages(); const id = ‘1mW6Yh2X4wU8A-vQs1Z2RRVHIfHD_SI3u’; const … Read more
Adding images from the web and Drive to Google Docs UI menu item to dynamically add images like logos and others. Press the menu button and add an image. Images can be from Google Drive or from the web. Preselected images within your Doc function onOpen() { DocumentApp.getUi().createMenu(‘adder’) .addItem(‘Logo’,’addLogo1′) .addItem(‘Logo GDrive’,’addLogo2′) .addItem(‘Svekis’,’addLogo3′) .addToUi(); } function … Read more