tanaike

The Thinker

Benchmark: Process Costs for Checking Value in Array using Google Apps Script

Gists Kanshi Tanaike Introduction There is a maximum executing time for Google Apps Script (GAS). That is 6 minutes. And, in the case of the custom function and the simple trigger, it is 30 seconds. Ref So users always have to pay attention to reducing the process cost of the scripts. Especially, it is very important to know the process costs for the array processing, because array processing is often used for spreadsheets and Google APIs.

Converting Large images to Google Document by OCR using Google Apps Script

Gists This is a sample script for converting the large images to Google Document by OCR using Google Apps Script. When the image size, the image file size, the resolution of the image, and so on are large, an error like Request Too Large occurs. In this sample script, such the image can be converted to Google Document by reducing them. Sample script Please enable Drive API at Advanced Google services.

Detecting Cells with Quote Prefix in Google Spreadsheet using Google Apps Script

Gists This is a sample script for detecting cells with the quote prefix in Google Spreadsheet using Google Apps Script. For example, when a value is put to a cell by adding a single quote ' as the top character, the cell value is used as the string value. This is the current specification. Under this condition, when the cells with the value of the quote prefix are tried to be detected, unfortunately, in the current stage, it seems that there is no method for directly achieving this in the methods of Spreadsheet service (SpreadsheetApp).

Report: Rule of Item IDs for Questions of Google Forms

Gists This is a report related to the rule of item IDs for questions of Google Forms. When the questions are created using the method of batchUpdate with Google Forms API, the created questions have the item IDs when the item IDs are not given in the request body. ( https://developers.google.com/forms/api/reference/rest/v1/forms#item ) For example, when you want to create a question and update the created question in one API call, it is required to include the custom item ID in the request body.