Last active
October 31, 2016 08:46
-
-
Save tanaikech/1719bee18abbf85f7abea8831ca19cf7 to your computer and use it in GitHub Desktop.
Google Apps Scriptで指定したフォルダへ直接スプレッドシートを作成する ref: http://qiita.com/tanaike/items/8c82392ef2749892061c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Drive.Files.insert({ | |
"title": ファイル名, | |
"mimeType": "application/vnd.google-apps.spreadsheet", | |
"parents": [{"id": フォルダID}] | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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