Is there a way to define named ranges through Google Docs GUI? - google-apps-script

I know that Named Ranges are a feature of Google Docs, but I can't seem to find any way to define/assign them using the GUI. Is this possible or can it only be done programmatically via Google Apps Script?

In Google' GUI cannot do this. But there is a third party library - https://github.com/tanaikech/DocNamedRangeApp
This repository has an example where working with ranges implemented in the sidebar - https://github.com/tanaikech/DocNamedRangeApp/tree/master/samples
Instructions for its - https://gist.github.com/tanaikech/36a2a9d393f42274a833e5660bfe4ce0
See also: https://stackoverflow.com/a/73470054

As far as I know, the Docs editor does not support that option natively, only from the API.
There is nothing I could find regarding this, only the Docs API Documentation

Related

How to insert RichLink (Chip Block) in Google Docs using Google App Script

Google Docs has recently introduced a feature where we can refer to
Date
Person
Google Drive Document
in the form of a Chip Block (as shown in the picture above)
I am trying to generate such chip block using Google App Script.
Rich Link Documentation does not have any code snippet or method to add a Rich Link inside a document.
Document Service page also doesn't have detail regarding how to insert a Rich Link.
I wonder whether the feature is not yet implemented in the Google App Script Api
The smart chips can be retrieved using the methods released on August 23, 2021. Ref. But, unfortunately, in the current stage, it seems that there are no methods for inserting the smart chips. Although I checked about this at both Google Document service and Google Docs API, I couldn't find the methods for this. So, I think that is the current answer.
And also, when I checked the Google issue tracker, I couldn't find anything about your goal. Ref So, how about reporting your goal as a future request at the issue tracker?

Support for Google Slides

Are there any plans for supporting apps script in google slides?
I wanted to code a progress bar to.. well show the progress of my presentation but as it turns out, slides does not support apps script.
You may want to regularly check Google Apps Script - Release Notes to be updated on the major changes in each release of Google Apps Script. This is intended to help developers identify recent changes in behavior.
However, you may want to also check features that you can use to show progress bar with the use of Google Slides API. Many of the features that make Google Slides so successful are available through the API. This lets you access and update presentations programatically, integrating data from various sources and producing finished presentations in a fraction of the time.
I haven't actually tried using this API, but this SO post shows how you can use the apps-script-oauth2 library to generate your OAuth token and be able to use Google Slides API.
For missing features that you might need or like, you may file requests here.
Hope that helps!

Generate a google doc via Java

I've been swimming through searches and tutorials and guides and references for days, and I can't seem to find a good way to generate google docs via Java.
I can generate/import .txt files as regular google doc files successfully with java using the drive api, but that's only text files; I need to at least include unordered lists and links in the doc for it to be useful.
My next attempt would be to generate a .rtf or a .doc and then try to import that into google docs, but before I embark on such a project, I wanted to ask you guys first. I also see the realtime api, but it looks like it doesn't specifically deal with docs, just arbitrary data.
What's the recommended way to upload a new google doc with lists and links and stuff?
Thanks!
Probably the simplest import format would be HTML. Just set convert=true and you should be good to go.
There is no stand-alone API for creating or manipulating the contents of Google Docs files. As you've found, you can create documents in other formats and import them with the Drive API.
If you don't need to work in Java, the other option is to use Google Apps Script, which provides a service for creating and manipulating Google Docs files. More information in this guide.

Can one use the Drive SDK to programmatically #mention other users in document comments?

Google Apps support #mentions through the application.
Is there a way to programmatically do #mentions using the Drive SDK API?
You can use the API to add comments that include #mentions. You can actually use the "+EMAIL_ADDRESS" syntax or the "#EMAIL_ADDRESS" syntax in the content field of a comment created with the API and it will be treated as a mention.

How can I build a Desktop client for Google Drive?

I want to build desktop application for Windows OS and use Google Drive to save some data in the cloud. After reading Google Drive SDK I found that only Web-applications, were installed from Chrome Web Store are allowed to use API and have access to data on Google Drive.
So my question: do I have any way to build native client (C++, Windows) for Google Drive? I know about hacks with using Google Docs API - but they can stop working any time, and I want something stable. Why Google team do not allow me create desktop application for their service? I have support of many other cloud storages and they do not have such restrictions.
Thanks.
For now you will have to use the (older) Google Document List API which provides full read-write and list access to Google Drive. (Google Drive and the former Google Docs use the same data)
So until we extend the capabilities of the current Drive API to cover the Google Document List use case you should use that instead.
EDIT: We just launched the v2 of the Google Drive SDK so you should now use that instead.
I have been working on a similar problem. I have realized that there is no straight forward way for doing this. Google Drive SDK is not easy to work with and how someone can simplify the process of connecting desktop application to Google drive shortly. I know this is not much help, but I am looking for a soltuion as well.
Here is some links that I have come across, haven't solved my problem either, but if you come to a solution please let us know PLEASE:
How to make GUI Client to upload file in java
Using Java APIs for downloading file from the Google Drive
http://www.coderanch.com/t/643120/Servlets/java/upload-file-drop-box-file