Skip to content

Instantly share code, notes, and snippets.

@tanaikech
Last active October 31, 2016 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanaikech/1719bee18abbf85f7abea8831ca19cf7 to your computer and use it in GitHub Desktop.
Save tanaikech/1719bee18abbf85f7abea8831ca19cf7 to your computer and use it in GitHub Desktop.
Google Apps Scriptで指定したフォルダへ直接スプレッドシートを作成する ref: http://qiita.com/tanaike/items/8c82392ef2749892061c
Drive.Files.insert({
"title": ファイル名,
"mimeType": "application/vnd.google-apps.spreadsheet",
"parents": [{"id": フォルダID}]
});
var ss = Drive.Files.insert({
"title": ファイル名,
"mimeType": "application/vnd.google-apps.spreadsheet",
"parents": [{"id": フォルダID}]
});
var sheet = SpreadsheetApp.openById(ss.id);
SpreadsheetApp.setActiveSpreadsheet(sheet);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment