スタンドアロン スクリプト
スタンドアロン スクリプトとは、Google スプレッドシート、ドキュメント、スライド、フォームのファイルにバインドされていないスクリプトです。これらのスクリプトは、Google ドライブ内のファイルに表示されます。
スタンドアロン スクリプトの作成
スタンドアロン スクリプトを作成する最も簡単な方法は、script.google.com
に移動し、左上の add [新しいプロジェクト] をクリックすることです。
Google ドライブからスタンドアロン スクリプトを作成することもできます。Google ドライブに移動し、[新規] > [その他] > [Google Apps Script] をクリックします。
スタンドアロン スクリプトの実行
スクリプト エディタから関数を実行するには、上部で実行する関数の名前を選択し、[実行] をクリックします。
スタンドアロン スクリプトを使用する
多くのスタンドアロン スクリプトはユーティリティ スクリプトです。たとえば、Google ドライブで「untitled」という名前の古いファイルを検索して削除できます。
スタンドアロン スクリプトは、ウェブアプリとしてデプロイすることも、インストール可能なトリガーから自動的に実行するように設定することもできます。
最後に、スタンドアロン スクリプトからアドオンを公開できるようになりました。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-21 UTC。
[null,null,["最終更新日 2024-12-21 UTC。"],[[["Standalone Google Apps Scripts are independent scripts not tied to any specific Google file like Sheets, Docs, or Slides, and they reside in your Google Drive."],["You can effortlessly create a standalone script by visiting script.google.com or through Google Drive by navigating to New \u003e More \u003e Google Apps Script."],["Standalone scripts are often utilized as utilities to automate tasks, such as searching and deleting files, or deployed as web apps or triggered automatically."],["They can be run directly from the script editor by selecting the desired function and clicking Run."],["Additionally, add-ons for Google Workspace can now be published using standalone scripts."]]],[]]