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
"use strict"; // 変数の宣言を強要 | |
const START_ROW = 12; // 班毎の情報が開始される行番号 | |
function onOpen() { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var menuItems = [ | |
{ name: '班毎のフォームを作成', functionName: 'createForm' } | |
]; | |
sheet.addMenu('振り返りフォーム', menuItems); |
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
"use strict"; // 変数の宣言を強要する | |
const LABEL_TITLE = ''; // 処理対象となるメールのラベル | |
const RETURN_MAIL = ''; // 返信先のメールアドレス | |
const TRANSLATE_LANG = 'ja'; // 翻訳対象となる言語 'ja' : 日本語 | |
const ADD_SUBJECT = '[TRANSLATE]'; // 翻訳後のメールの件名に追加する文字列 | |
/** | |
* トリガー関数を設定するためのメニュー項目を設定 | |
*/ |
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
'use strict' // 変数の宣言を強制 | |
const FILE_ID = ''; | |
const RESPONSE_TITLE = 'ファイルをコピーするための URL を連絡します。'; | |
function onFormSubmit(e) { | |
// フォームの回答を取得 | |
// 参考: https://developers.google.com/apps-script/guides/triggers/events#google_forms_events | |
// https://developers.google.com/apps-script/reference/forms/form-response |
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
'use strict' // 変数の宣言を強制 | |
const THUMB_W = 320; // サムネイル画像の幅 | |
const THUMB_H = 180; // サムネイル画像の高さ | |
function onOpen() { | |
Logger.log("[開始] メニュー項目を追加"); | |
SpreadsheetApp.getUi() | |
.createMenu('スピーカーノート操作') |
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
'use strict' // | |
const HOLIDAY_CALENDAR = 'ja.japanese#holiday@group.v.calendar.google.com'; | |
const HOLIDAY_RANGE = 'HOLIDAY'; // 休日情報を書き出す見出し部分の「名前付き範囲」 | |
const MONTH_OFFSET = -1; // Date 型の「月」は 0 ~ 11 で表すため、補正用の値 | |
//---------------------------------------------------------------------------- | |
// チェック結果をクリア | |
function checkClear() { | |
checkClear0(); |
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
"use strict"; // 変数の宣言を強要する | |
const SUBJECT_TITLE = 'OCR Request'; // 処理対象となるメールの件名 | |
const RESPONSE_TITLE = 'OCR Response'; // 返信メールの件名 | |
const RETURN_MAIL = ''; // 返信先のメールアドレス | |
const DELETE_IMAGE = true; // 処理後に画像ファイルを削除する | |
const DELETE_DOCS = true; // 処理後に Google ドキュメントを削除する | |
const TRANSLATE_LANG = 'ja'; // 翻訳対象となる言語 'ja' : 日本語 | |
const BCC2ME = true; // 自身に BCC で送信するか? |
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
"use strict"; // 変数の宣言を強要する | |
/** | |
* フォームで回答されたときに呼び出されるトリガー関数 | |
* https://developers.google.com/apps-script/guides/triggers/events#google_forms_events | |
*/ | |
function onFormSubmit(e) { | |
const form = FormApp.getActiveForm(); | |
const itemResponses = e.response.getItemResponses(); | |
const eMail = e.response.getRespondentEmail(); // 回答者のメールアドレスを取得 |
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
"use strict"; // 変数の宣言を強要する | |
const OUTPUT_VALUE = 0; // 書き出す内容に単位を付けるか?(0:付ける、2:付けない) | |
// 関数 currentRowProc で使用する定数(あとで解析する) | |
const READ_COLUMNS = 10; // 読み込むセル数 | |
const WRITE_COLUMN1 = 5; // 書き込むセル位置(平均キータイプ数) | |
const WRITE_COLUMN2 = 6; // 書き込むセル位置(ミスタイプ数) | |
// 関数 onFormSubmit で使用する定数(トリガー関数で解析する) |
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
"use strict"; // 変数の宣言を強要する | |
/** @OnlyCurrentDoc */ // 他のファイルにはアクセスしない | |
const MODE_VERIFICATION = true; // 削除の際に確認を求めるか?(true なら確認を求める) | |
const ERR_MSG01 = 'E01 現在のセルの内容が日付ではないため、処理を中断します...'; | |
function onOpen() { | |
let ui = SpreadsheetApp.getUi(); // Uiクラスを取得する | |
let menu = ui.createMenu('予定の削除'); // Uiクラスからメニューを作成する | |
menu.addItem('削除実行', 'cancelConf'); // メニューにアイテムを追加する |
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
"use strict"; // 変数の宣言を強要する | |
/** @OnlyCurrentDoc */ // 他のファイルにはアクセスしない | |
/** | |
* 2023/01/21 | |
* ・ownerId をそのまま表示するのではなく、可能であればメールアドレスに変換する | |
* ・「投稿」だけでなく、「課題」「資料」についても最新の日時を表示する | |
* ・一覧の作成後、カーソル行のクラスをアーカイブする機能をメニューに追加 | |
*/ |
NewerOlder