google-docs

Google Apps script- iterating through words in a paragraph

不羁的心 提交于 2019-12-19 08:14:10
问题 So basically I have a paragraph with some text underlined, but not all text is underlined. I want to be able to iterate through the selected text and change the text size of the UN-underlined text. Essentially I want the underlined text to stick out more. Is there a way to iterate through the paragraph and check if each word is underlined? The text element in GAS has a isUnderlined() function but that doesn't do me any good since I only know how to grab the entire element. Thanks for your

Any way to share google docs programmatically?

拥有回忆 提交于 2019-12-19 04:22:12
问题 I have a program that will get data from a fusion table, put it in a google doc(using a template I made), make it a pdf and then display a link to it(to the pdf). My problem is that it works fine for my account but if anyone else tries to click on it they keep getting the "404 Not Found" error. My guess is that the error shows up because I am the only one allowed to view the file. My question is: Is there a way to programmatically share the file with everyone in the organization or is there

Any way to share google docs programmatically?

核能气质少年 提交于 2019-12-19 04:22:01
问题 I have a program that will get data from a fusion table, put it in a google doc(using a template I made), make it a pdf and then display a link to it(to the pdf). My problem is that it works fine for my account but if anyone else tries to click on it they keep getting the "404 Not Found" error. My guess is that the error shows up because I am the only one allowed to view the file. My question is: Is there a way to programmatically share the file with everyone in the organization or is there

read.csv fails to read a CSV file from google docs

只谈情不闲聊 提交于 2019-12-19 03:32:43
问题 I wish to use read.csv to read a google doc spreadsheet. I try using the following code: data_url <- "http://spreadsheets0.google.com/spreadsheet/pub?hl=en&hl=en&key=0AgMhDTVek_sDdGI2YzY2R1ZESDlmZS1VYUxvblQ0REE&single=true&gid=0&output=csv" read.csv(data_url) Which results in the following error: Error in file(file, "rt") : cannot open the connection I'm on windows 7. And the code was tried on R 2.12 and 2.13 I remember trying this a few months ago and it worked fine. Any suggestion what

SpreadsheetApp.openByUrl and openById give errors

▼魔方 西西 提交于 2019-12-18 17:56:18
问题 So I have encountered a problem in the application I am writing using google spreadsheets and app-script. I have put together a step by step guid to reproduce it. Summary: any script that uses SpreadsheetApp.openByUrl() and SpreadsheetApp.openById() works OK when called from inside the script editor but gives errors when called from inside even the same spreadsheet that has that script inside it. Error Messages: Error You do not have permission to perform that action. (line ?). Steps to

SpreadsheetApp.openByUrl and openById give errors

感情迁移 提交于 2019-12-18 17:55:29
问题 So I have encountered a problem in the application I am writing using google spreadsheets and app-script. I have put together a step by step guid to reproduce it. Summary: any script that uses SpreadsheetApp.openByUrl() and SpreadsheetApp.openById() works OK when called from inside the script editor but gives errors when called from inside even the same spreadsheet that has that script inside it. Error Messages: Error You do not have permission to perform that action. (line ?). Steps to

Google Apps Script - How To Have One Script In multiple containers?

懵懂的女人 提交于 2019-12-18 15:09:12
问题 I have a container-bound Google Apps Script that is bound to a document, it works fine, adds the menu, works fine. My question is, how do I automatically have the container bound script automatically run in EVERY DOCUMENT? Also, Is it possible to make a chrome extension to modify google docs and if so how do I go about doing so? here is my code: var BLOCKS = "abcdefg"; var CLASSES = ["English", "History", "Science", "Writing", "Latin", "Math", "Study Skills"]; var FUNCTION_NAMES; var global =

Customize CSS of Google Docs Viewer

ⅰ亾dé卋堺 提交于 2019-12-18 13:48:10
问题 How do i customize the CSS of the google docs view iframe? I realize that the iframe is getting the content from a cross domain source which i do not control, i was just wondering if anyone has some sort of hack around this? 回答1: I asked this so i could post the solution. Its totally hacky and based off of a an answer from another thread on SO. I had to make a few modifications to get it working because the answer linked above didn't quite work with google docs. Basically you proxy the

Student's t distribution in JavaScript for Google Spreadsheet

戏子无情 提交于 2019-12-18 09:18:18
问题 Google Spreadsheets currently does not support the standard function TDIST - i.e. the Student's t-distribution. This function is critical for calculating p-values. It seems that this is related to the fact that no integral-using functions (AFAICT) are implemented either. However, Google Docs allows people to add and publish their own scripts, in JavaScript. So ideally we should have something like: function tdist(t_value, degrees_of_freedom, two_tailed [defaults true]) {...} Anyone know of

How do I prevent exposure of my password when using RGoogleDocs?

戏子无情 提交于 2019-12-17 22:11:41
问题 I love RGoogleDocs and use it a lot. However, I don't like entering my password all the time. Obviously I could just type the password into the R script and would never have to enter it again. But thats not viable since it means that my password would be left unencrypted on my harddrive. Furthermore I share my scripts with colleagues. To get around the problem I came up with this. if(exists("ps")){ print("got password, keep going") } else { ps <-readline(prompt="get the password in ") }