google-apps-script

How to upload files to firebase storage from google drive using Apps Script?

不羁岁月 提交于 2020-04-08 13:04:28
问题 I need some users to be able to upload files to firebase storage, but they're non tech-savvy, so I will let them upload to drive first, and mirror drive from storage. The thing is, I can't figure out how without having to host a server; google apps scripts can't access firebase storage easily (it can access both firebase databases though) and I need a server to use the google drive API, which could be done using firebase cloud functions, but I wonder if there is an easier alternative. 回答1: An

How to upload files to firebase storage from google drive using Apps Script?

亡梦爱人 提交于 2020-04-08 13:02:53
问题 I need some users to be able to upload files to firebase storage, but they're non tech-savvy, so I will let them upload to drive first, and mirror drive from storage. The thing is, I can't figure out how without having to host a server; google apps scripts can't access firebase storage easily (it can access both firebase databases though) and I need a server to use the google drive API, which could be done using firebase cloud functions, but I wonder if there is an easier alternative. 回答1: An

Using one script for copying text from cells in a row to another sheet using an icon in a row

亡梦爱人 提交于 2020-04-07 07:07:55
问题 From my previous post (Autocopy cell value from one cell to another sheet by clicking an icon in google sheets) I now run into a new problem which I would like someone to help me out with. I'm trying to achieve a spreadsheet where an anonymous user can click the icon in column A and the data from column B and C is moved from sheet1 to sheet2 including a timestamp. So far so good. It is up and running with a help from this great community. I'm using this script: function copyPasteValue2() {

Using one script for copying text from cells in a row to another sheet using an icon in a row

天涯浪子 提交于 2020-04-07 07:06:22
问题 From my previous post (Autocopy cell value from one cell to another sheet by clicking an icon in google sheets) I now run into a new problem which I would like someone to help me out with. I'm trying to achieve a spreadsheet where an anonymous user can click the icon in column A and the data from column B and C is moved from sheet1 to sheet2 including a timestamp. So far so good. It is up and running with a help from this great community. I'm using this script: function copyPasteValue2() {

how to change timezone in googlesheet?

一个人想着一个人 提交于 2020-04-07 06:38:33
问题 I have copied a script for: when you visit an url, with values ​​in the url: my googlesheet automatically fills with the values ​​hidden in the url in cell and on the same line: the date and time . Everything works except that the time is not that of my time zone. What should I change to have the time in my time zone? Thanks function doGet(e) { Logger.log( JSON.stringify(e) ); // view parameters var result = 'Ok'; // assume success if (e.parameter == 'undefined') { result = 'No Parameters'; }

Google Apps Script: AuthMode gets confused w/ multiple logged in users

本小妞迷上赌 提交于 2020-04-07 06:17:19
问题 I'm bumping into a weird problem in Google Apps Script, working on a Slides add-on. When I run the add-on in an incognito window with just one user logged in (call it User B), everything works fine. When I run the add-on with multiple users logged in (call it Users A and B in the same Chrome tab), it seems like Apps Script gets confused around the authorization. When I try to use the add-on as User B (as evidenced by the profile showing up in the upper right corner), all functionality of the

Google Apps Script: AuthMode gets confused w/ multiple logged in users

て烟熏妆下的殇ゞ 提交于 2020-04-07 06:16:30
问题 I'm bumping into a weird problem in Google Apps Script, working on a Slides add-on. When I run the add-on in an incognito window with just one user logged in (call it User B), everything works fine. When I run the add-on with multiple users logged in (call it Users A and B in the same Chrome tab), it seems like Apps Script gets confused around the authorization. When I try to use the add-on as User B (as evidenced by the profile showing up in the upper right corner), all functionality of the

Google Apps Script: AuthMode gets confused w/ multiple logged in users

不羁的心 提交于 2020-04-07 06:14:31
问题 I'm bumping into a weird problem in Google Apps Script, working on a Slides add-on. When I run the add-on in an incognito window with just one user logged in (call it User B), everything works fine. When I run the add-on with multiple users logged in (call it Users A and B in the same Chrome tab), it seems like Apps Script gets confused around the authorization. When I try to use the add-on as User B (as evidenced by the profile showing up in the upper right corner), all functionality of the

How to open a URL in google apps script?

ε祈祈猫儿з 提交于 2020-03-28 06:53:09
问题 [https://docs.google.com/spreadsheets/d/1owEwaLhddXvSfI11AA7ZWmuQh4oeKoVSZkiu9LSlRLU/edit?usp=sharing ] This is my sheet in which i fill the start time for first row manually. I open the link manually for the first time and mark my judgement for "Purchasable" Column as Y/N. As soon as i mark my judgement i want the "end time" column to fill automatically and the link in the "URL" column of the next row to open up automatically and repeat the same series. Is it possible by app script as I need

Get the ranges of the elements in a google doc using Google Apps Script

試著忘記壹切 提交于 2020-03-28 06:50:40
问题 Following on from this question - I am now unsure how I might be able to target certain paragraphs or elements within the document when using Google Apps Scripts in order to use the batch update method outlined one would need to find the range of the element that required styling. If there were 10 empty paragraphs (with content of "\n",) in a document - how would it be possible to target the 8th paragraph and get the range values {"startIndex": xx, "endIndex": xx} relative to the document so