---
title: "Google Drive folder picker using jsTree with Google Apps Script and Javascript"
author: "Martin Hawksey"
date: 2023-03-23T23:03:19+00:00
canonical_url: https://pulse.appsscript.info/p/2023/03/google-drive-folder-picker-using-jstree-with-google-apps-script-and-javascript/
markdown_url: https://pulse.appsscript.info/p/2023/03/google-drive-folder-picker-using-jstree-with-google-apps-script-and-javascript.md
categories:
  - "Intermediate"
  - "Solutions"
tags:
  - "tanaikech.github.io"
featured_image: https://pulse.appsscript.info/files/2023/03/fig1.gif
description: "The Google Picker is a file picker that allows users to select files from Google Drive which can be used in your Apps Script projects. The Picker is good but there are certain scenarios where the functionality isn't available, one I've personally found is selecting the My Drive or Shared drive root. Here's an alternative approach from Kanshi Tanaike for an alternative folder picker created using jsTree. In the post you'll find more information plus how you can use this solution with a service account."
---

# Google Drive folder picker using jsTree with Google Apps Script and Javascript

![Google Drive folder picker using jsTree with Google Apps Script and Javascript](https://pulse.appsscript.info/files/2023/03/fig1.gif)

> [https://tanaikech.github.io/2023/03/23/folder-picker-using-jstree-with-google-apps-script-and-javascript/](https://tanaikech.github.io/2023/03/23/folder-picker-using-jstree-with-google-apps-script-and-javascript/)
> This is a sample script for the folder picker using jsTree with Google Apps Script and Javascript.

The [Google Picker**](https://developers.google.com/drive/picker/guides/overview) is a file picker that allows users to select files from Google Drive which can be used in your Apps Script projects (See [Using Google Picker with Google Apps Script**](https://www.labnol.org/code/20039-google-picker-with-apps-script)). The Picker is good but there are certain scenarios where the functionality isn’t available, one I’ve personally found is selecting the My Drive or Shared drive root. Here’s an alternative approach from Kanshi Tanaike for an alternative folder picker created using jsTree. In the post you’ll find more information plus how you can use this solution with a service account.

Source: [Folder Picker using jsTree with Google Apps Script and Javascript**](https://tanaikech.github.io/2023/03/23/folder-picker-using-jstree-with-google-apps-script-and-javascript/)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2023/03/google-drive-folder-picker-using-jstree-with-google-apps-script-and-javascript/](https://pulse.appsscript.info/p/2023/03/google-drive-folder-picker-using-jstree-with-google-apps-script-and-javascript/)*
