The following script was recommended to use a List Page to show a Google Docs folder on a page in a google site.
https://developers.google.com/apps-script/articles/embedding_docslist_in_sites#section2
When I try to run it on a recently created folder in Google Drive, the script never seems to finish.
The script still works for a folder created before the switch to google drive, which has a much longer ID.
What am I missing?
Cheers
In the script gallery (open a spreadsheet, click on menu Tools>Script Gallery), search for "Embed Google Docs Folders in a Google Site".
This is an updated version of the script available in the Apps Script documentation. It should work better.
Related
I wrote an extension for Google Docs that used to show up in the Add Ons menu for my organization. The add on no longer shows up in the menu, but I can see it in the Google Workspace Market. I originally had it on the Google Chrome Webstore, but then it moved to the Workspace Marketplace. I can also see the corresponding project in my Google Cloud Platform console.
However, when I go to the Google Apps Script Editor, my project is not there. I have no access to the source code or ability to fix it so that it will show up in the Add Ons menu again. Does anyone know where I might be able to find script? I have the URLs for the Workspace Market, but it is private to my organization, so no one will be able to view it.
Also, I tried going through Google Support but they said that App Scripts is not supported and to ask on Stack Overflow.
Edit:
Screenshot of error
Answer to rev 1
Open the Google Marketplace SD settings page on the Google Cloud project linked of your add-on. There you should find the script project id.
Then on your web browser open your Google Apps Script project by writing a URL like this:
https://script.google.com/d/<<put-here-the-script-project-id>>/edit
If the above doesn't work, see notes at the bottom
Resources
Publish an add-on
Enable and configure the Google Workspace Marketplace SDK
Related
How can I view the source of a google apps script Library
Library with identifier underscoreGS is missing
NOTES
If you get the message "Sorry, unable to open the file at this time", try again using Chrome on incognito mode with all the extensions disabled and signing in only with an account that has access to the Google Apps Script project.
If the above doesn't work either, follow the screen advice, wait a bit and try later.
Related
Google Drive Page Not Found - Sorry, unable to open the file at this time
In the left pane of the google apps script editor, there is a button for a new folder. I have not been able to find out what one can do with this.
The Google Apps Script Editor doesn't include folders as a built-in function, but you could use Google Drive folders to organize files, including Google Apps Script project files but not the internal .gs and .html files.
The answer was in the two comments: the pane labeled "New Folder" was put there by the extension, AppsScript Color, which I tried at one time.
I had published a private addon on google spreadsheet. However, the problem is, I lost the app script source code for my addon. I need to make some changes and publish it again.
How can I possibly get/download the code from the spreadsheet addon that I published on the chrome web-store?
I tried looking on https://chrome.google.com/webstore/developer/dashboard where there is a list of all my addons published but there's no option for reading the source code. A quick google search reveals nothing regarding this. Any suggestions?
I figured out a way to find the code.
From your developer dashboard: https://chrome.google.com/webstore/developer/dashboard
click on more info and then click to download the main.crx file for the addon you're interested in.
main.crx is a zip file which you should be able to unzip. On linux or mac you can do it from the command line unzip yourfilename_main.crx
open up manifest.json and look for "container_id" the string after that is the file ID of your script.
https://script.google.com/d/container_id_of_your_script_here/edit
It's not possible to get the source code from the Chrome Web Store. Instead you have to find the file that holds your Google Apps Script project. Take a look to the Trash of your Google Drive. For further details see Find or recover a file - Google Drive Help
I work for a university which uses Google App for EDU. Recently, I decided to begin testing app script to see how it could be of use to our organization. I have been able to create new app scripts and run them without issue. However, I have found that once I close the browser editor tab, I am not able to retrieve any script I've wrote unless I have the editor url saved (ie. I dont see any of my script in my google drive). Is there a particular app script site where my scripts are listed?
Thanks,
Bryan
The long method i use to get to see all my App Scripts is:
open an existing spreadsheet, or simply create a new spreadsheet
go to Extensions > Apps Script
click on the "Apps Script" logo in the top left corner
This will take you to: https://script.google.com/home
The short method is just to have that link (above) saved on browser toolbar and click it whenever i need to.
to be able to starts new script from the drive you have to connect script app to your drive using the Browser interface like below :
from the connect more apps at the bottom search for "script" and add it.
If you created scripts from inside a spreadsheet, they are tied to that sheet and will not show up in Drive; you can find them via the "Script Manager" menu in that spreadsheet.
All standalone scripts will be visible in your Google Drive. Did you write your script inside a spreadsheet or a Google Site ? If so, you have to open the spreadsheet or site to see your script.
If you indeed have a standalone script, make sure you click the 'All Items' on the left hand side of Google Drive or use search.
If you've created a new script from script.google.com and have saved it, it'll appear in Drive under the root My Drive folder.
If you created one from inside of Drive by clicking the red Create button then Script, it'll be in the folder which you last clicked on before clicking Create. If you don't remember what folder you created the script file under, click the Recent folder name to find it.
If you've started one inside a Form , Sheet, or Doc you'll have to remember where the Form, Sheet or Doc was located in Drive.
You can search all your scripts in Google Drive using app:"Google Apps Script" or by selecting Google Apps Script under Opens With from the drop down menu.
As pointed out by #Mandy, this assumes you have added Apps Script as a connect app. See answer from #Serge on how to do that.
Try the handy dashboard/central location for scripts:
https://script.google.com
I want to embed Google Drive Scripts/ project from Google Sites but I can not.
Google Sites alert me with a message
This url is not recognised as a valid Apps Script
after I
created project-script from Google Drive,
added a function function doget(e) { code; code; code; ... },
published the script ("Deploy as web app"),
retrieved the link link (e.g: https://script.google.com…1DkWAQ/exec), and
in the Google Sites page,
I edited page and inserted a script from menu: Insert > Apps Script Gadget.
In the next page I enter script's link but a message box shows up: "This url is not recognised as a valid Apps Script"
Where I am wrong?
My question is: Can I execute Google Drive Script without adding code in site's page? Is it possible to execute from several Google Sites' pages a Google Drive Script with different parameters?
Thanks,
Michele
The url is different when embedded in a Google site, here is an example that can be inserted :
`https://sites.google.com/macros/exec?service=keyxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
You can pick the key in the standalone url.
I must admit that the interface is not really clear about that, nor is the documentation
EDIT : since some people seems to be sceptic ;-) here is an example with a shared script written as a script file :
the url given for a standalone app is :
https://script.google.com/macros/s/AKfycbxlPTVLSLfO3d1w2vSrMzzh57p9DJM6ivCIHiIfTB2AKqubSs1L/exec
The same script in the site page is :
https://sites.google.com/macros/exec?service=AKfycbxlPTVLSLfO3d1w2vSrMzzh57p9DJM6ivCIHiIfTB2AKqubSs1L
feel free to check ;-)
in the gadget properties it shows up like this :
I believe this summarizes the correct format for URLs of scripts saved on Drive for inserting with a Script Gadget on Google Sites:
Regular Google user:
https://sites.google.com/macros/exec?service=KEY
Google Apps domain:
https://sites.google.com/a/macros/MYDOMAIN/exec?service=KEY
Note the domain part is 'sites.google.com' not 'script.google.com'
As my experiences, you can't create an Apps script in Google Drive and then embed it in Sites.
To do that, log into your site's dashboard. You can do that by selecting menu item More > Manage site from your site (with logged in account). Then select tab Apps Scripts, hit the button Add new script. From there you can code your script. When you're done, come back to your site, edit a page and insert that script into your page.