title: List Google app script projects
body: <p>I'm trying to list all my google script files using the Google Drive File API as documented <a href="https://developers.google.com/apps-script/guides/import-export" rel="nofollow noreferrer">here</a>. However I always get back an empty [] list. I think my token and my scopes are fine as I'm getting back this from Google OAuth2:</p>
  
  <pre><code>{ "access_token": "xxxxx", "expires_in": 3600, "refresh_token": "yyyyy",
  "scope": "https://www.googleapis.com/auth/drive.scripts https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/drive",
  "token_type": "Bearer"
  }
  </code></pre>
  
  <p>But then when I issue the query using mimeType filtering (I just want to get google app scripts list):</p>
  
  <pre><code>mimeType = 'application/vnd.google-apps.script'
  </code></pre>
  
  <p>I'm only getting back an empty items list ([]), even if I've just created a google script inside a Google Sheet:</p>
  
  <pre><code>{ "kind": "drive#fileList", "etag": "....", "selfLink": "https://www.googleapis.com/drive/v2/files?q=mimeType+%3D+'application/vnd.google-apps.script'", "incompleteSearch": false, "items": []}
  </code></pre>
  
  <p>I'm guessing that app-script means something else than google script code which is part of a Google Sheet... Any help appreciated :)</p>