google-apps-script

Convert PDFs to Google docs and get extracted text along with link to original PDF file into a spreadsheet

喜你入骨 提交于 2020-02-06 08:17:14
问题 I'm just facing a little problem in getting the link to the PDF file when I run a script to convert PDF files to Google docs with OCR then populate the results into a google sheets. So far I get the name of the file created (Google Docs) and the extracted text. what I'm trying to achieve: on the 3rd column, I'd like to get the link of the PDF file corresponding to the Google docs created I've tried to include the variable pdf to the push array: var pdf = document.getId(); ... output.push(

Dropdown auto generating a range based on a total

ぃ、小莉子 提交于 2020-02-06 07:58:51
问题 I am trying to create a sheet for users to select a quantity of items from a drop down list and it reference a TOTAL stock quantity amount. I have had some luck finding a script to fill a dropdown that references a range but is clunky having to generate all the items in the range. I would like the dropdowns (Column B) to reference the total sock (Column C) and it fill the dropdown without me having to render the range in columns D-Z. Example Sheet 回答1: If I understand you correctly, you want

Dropdown auto generating a range based on a total

两盒软妹~` 提交于 2020-02-06 07:57:12
问题 I am trying to create a sheet for users to select a quantity of items from a drop down list and it reference a TOTAL stock quantity amount. I have had some luck finding a script to fill a dropdown that references a range but is clunky having to generate all the items in the range. I would like the dropdowns (Column B) to reference the total sock (Column C) and it fill the dropdown without me having to render the range in columns D-Z. Example Sheet 回答1: If I understand you correctly, you want

Auto Populate Multiple Choice in google forms from a list on google sheet

守給你的承諾、 提交于 2020-02-06 07:52:47
问题 So I have a google sheet with a list of names and I want a multiple choice box on a google form to populate with this list. I have already created a script to create a dropdown menu based on this list but can't get the multiple choice to work. Here is the script that creates the dropdown menu. function updateForm(){ // call your form and connect to the drop-down item var form = FormApp.openById("Form ID"); var namesList = form.getItemById("Data-Item-ID").asListItem (); // identify the sheet

Auto Populate Multiple Choice in google forms from a list on google sheet

。_饼干妹妹 提交于 2020-02-06 07:52:41
问题 So I have a google sheet with a list of names and I want a multiple choice box on a google form to populate with this list. I have already created a script to create a dropdown menu based on this list but can't get the multiple choice to work. Here is the script that creates the dropdown menu. function updateForm(){ // call your form and connect to the drop-down item var form = FormApp.openById("Form ID"); var namesList = form.getItemById("Data-Item-ID").asListItem (); // identify the sheet

Is it possible to use a cell with a url linked object to trigger a function?

泄露秘密 提交于 2020-02-06 06:32:10
问题 I am trying to create a spreadsheet that has sections that are hideable by buttons in the spreadsheet. using insert images or shapes will not work as the place that they need to be located will get hidden which places the buttons in the wrong place. 回答1: Cell links can't be used to trigger a function from a server sided bounded script project but they could be used to run a web app. It's worthy to note that could be a lot easier to use a sidebar to put there the buttons that you need. 来源:

Is it possible to use a cell with a url linked object to trigger a function?

久未见 提交于 2020-02-06 06:29:05
问题 I am trying to create a spreadsheet that has sections that are hideable by buttons in the spreadsheet. using insert images or shapes will not work as the place that they need to be located will get hidden which places the buttons in the wrong place. 回答1: Cell links can't be used to trigger a function from a server sided bounded script project but they could be used to run a web app. It's worthy to note that could be a lot easier to use a sidebar to put there the buttons that you need. 来源:

Google script run at specific date (more than one date)

落花浮王杯 提交于 2020-02-05 11:09:10
问题 I need help to write a script. Here's what I want to do: the script is time trigger (every day), but when it run, I want to add specific date (one date per rang(cells)). And if the date is not in the option, the script will run but do noting. Here is the script that I have already work with the help from here: function AddProtectionToColumn() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var range = GetRange(ss); var protectSs = range.protect().setDescription('Protect'); var me = Session

Google apps script application publish to google apps marketplace

戏子无情 提交于 2020-02-05 09:22:23
问题 Can I publish google apps script application to google apps marketplace? Thanks. 回答1: No you cant. You can publish to the chrome web store. Look up the gas documentation its explained there. 回答2: EDIT: You can now do that officially: Follow this link: https://developers.google.com/apps-script/guides/domain-wide-web-app I think you can. (I haven't tested yet),... Basically the "zip package" of a Google Script is conformed with two elements: An icon. A manifest file, which contents is this: {

Why won't append row work with array?

给你一囗甜甜゛ 提交于 2020-02-05 04:19:09
问题 I am trying to insert a row to the bottom of a sheet, but instead of my values I see text similar to what happens when you try to print an array in Java. I checked to see if the array is made correctly with logger and it has the values I want. var name = e.range.getRow() + SpreadsheetApp.getActiveSpreadsheet().getName(); var array = e.range.getValues().concat(name); Logger.log(array.toString()); masterSheet.appendRow(array); array contains a timestamp, string1, string2, and finally the name I