前回までのおさらい 前回までの連載で、以下のようなスクリプトを作りました。 const FOLDER_ID = '{フォルダID}'; function creatSS() { const id = SpreadsheetApp.create("新規SS").getId(); const file = DriveApp.getFileById(id); const folder = DriveApp.getFolderById(FOLDER_ID); console.log(folder.getName()); } この時点では createメソッドでスプレッドシートを作成 作成したスプレッドシートのIDを取得 スプレッドシートのIDを使って、そのFileオブジェクトを取得 移動先となるFolderオブジェクトを取得 という処理をしていますが、この後の手順として 移動先となるFolderオ
![Google Apps ScriptでGoogleドライブ内のファイルを追加・削除・移動をする方法](https://cdn-ak-scissors.b.st-hatena.com/image/square/0b03e93f7ed44ade03ee875d25dee48dfe1ce935/height=288;version=1;width=512/https%3A%2F%2Ftonari-it.com%2Fwp-content%2Fuploads%2Ftidying-up.jpg)