0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Google Apps Script(GAS)の始め方

Posted at

目的

  • Google Apps Script(以降GAS)の始め方を記載する

概要

  • 「実行ログ」に「Hello」と出力する簡単な処理を記載してみる

方法

  1. GoogleアカウントでGoogleのサービスにログインする。

  2. 下記の「ドライブ」をクリックする。

    新しいタブ.png

  3. 「新規」をクリックする。

    マイドライブ_-_Google_ドライブ.png

  4. 「その他」→「Google Apps Script」をクリックする。無題のプロジェクト_-プロジェクト編集者-_Apps_Script.png

    マイドライブ_-_Google_ドライブ.png

  5. 下記のようなウインドウが開く。

    無題のプロジェクト_-プロジェクト編集者-_Apps_Script.png

  6. エディター部分に下記の内容を記載する。

    function myFunction() {
        Logger.log('Hello');
    }
    
  7. フロッピーマークをクリックして記載内容を保存する。

    無題のプロジェクト_-プロジェクト編集者-_Apps_Script.png

  8. 「実行」をクリックする。

    無題のプロジェクト_-プロジェクト編集者-_Apps_Script.png

  9. 下記のように「実行ログ」に「Hello」の文字が出力される。

    無題のプロジェクト_-プロジェクト編集者-_Apps_Script.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?