app.js
/**
 * A special function that runs when the spreadsheet is open, used to add a
 * custom menu to the spreadsheet.
 */
A special function that runs when the spreadsheet is open, used to add a
custom menu to the spreadsheet.
A special function that runs when the spreadsheet is open used to add a custom menu to the spreadsheet .
function onOpen() {
  var spreadsheet = SpreadsheetApp.getActive();
  var menuItems = [
    { name: 'シートの準備', functionName: 'prepareSheet' },
    { name: 'シフト確認メールプレビュー', functionName: 'showPreview' },
    { name: 'シフト確認メールを送信', functionName: 'sendShift' }
  ];
  spreadsheet.addMenu('シフト管理', menuItems);
}
function onOpen ( ) { var spreadsheet = SpreadsheetApp . getActive ( ) ; var menuItems = [ { name : 'シートの準備', functionNa m : 'prepareSh e t' }, { name : 'シフト確認メールプレビュー', functionName: 'showPrevi e ' }, { name : 'シフト確認メールを送信', functionName: 'sendS h ft' } ] ; spreadsheet . addMenu ( 'シフト管理', menuItem s ; }
A special function that runs when the spreadsheet is open, used to add a
 custom menu to the spreadsheet.
A special function that runs when the spreadsheet is open used to add a custom menu to the spreadsheet .