{"id":6397,"date":"2022-09-14T20:32:33","date_gmt":"2022-09-14T11:32:33","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=6397"},"modified":"2024-06-30T17:36:35","modified_gmt":"2024-06-30T08:36:35","slug":"post-6397","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=6397","title":{"rendered":"GAS\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u3059\u308b\u65b9\u6cd5!newTrigger\u306b\u3088\u308b\u6642\u9593\u4e3b\u5c0e\u3084\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30c8\u30ea\u30ac\u30fc"},"content":{"rendered":"\n<p>Google Apps Script(GAS)\u306e\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u306f\u901a\u5e38\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u306eGUI\u304b\u3089\u8a2d\u5b9a\u3057\u307e\u3059\u304c\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001GAS\u306eScriptApp.newTrigger\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u69d8\u3005\u306a\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u306e\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5b9f\u884c\u53ef\u80fd<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u306f\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u6a5f\u80fd\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u6a5f\u80fd\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u7528\u610f\u3057\u305fGAS\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u7de8\u96c6\u3057\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3084\u30011\u6642\u9593\u306b1\u56de\u306a\u3069\u7e70\u308a\u8fd4\u3057\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u306f\u901a\u5e38\u3001GAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u306e\u30c8\u30ea\u30ac\u30fc\u30da\u30fc\u30b8\u304b\u3089\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"407\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220913_auto_004.jpg\" alt=\"Google Apps Script(GAS)\u306e\u7279\u5b9a\u65e5\u6642\u3092\u6307\u5b9a\u3057\u305f\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u304c\u5b9f\u884c\u3055\u308c\u305f\u5b9f\u884c\u7d50\u679c\" class=\"wp-image-6388\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220913_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220913_auto_004-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220913_auto_004-768x391.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220913_auto_004-530x270.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220913_auto_004-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220913_auto_004-710x361.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220913_auto_004-725x369.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u5b9f\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u306eGUI\u8a2d\u5b9a\u4ee5\u5916\u306b\u3001GAS\u306b\u7528\u610f\u3055\u308c\u305f\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u3059\u308bnewTrigger\u30e1\u30bd\u30c3\u30c9<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001newTrigger\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><em><strong>ScriptApp.newTrigger(&#8216;\u30c8\u30ea\u30ac\u30fc\u5b9f\u884c\u3057\u305f\u3044\u95a2\u6570\u540d&#8217;)<\/strong><\/em><\/p>\n\n\n\n<p>newTrigger\u30e1\u30bd\u30c3\u30c9\u306fScriptApp\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u5b9f\u884c\u3067\u304d\u3001\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u3092\u4f5c\u6210\u3057\u305f\u3060\u3051\u3067\u306f\u3001\u30c8\u30ea\u30ac\u30fc\u306e\u30a4\u30d9\u30f3\u30c8\u30bd\u30fc\u30b9\u306a\u3069\u306e\u8a2d\u5b9a\u304c\u306a\u3044\u305f\u3081\u3001\u5404\u7a2e\u30c8\u30ea\u30ac\u30fc\u6761\u4ef6\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u306b\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u306b\u5909\u63db\u5f8c\u3001\u30c8\u30ea\u30ac\u30fc\u6761\u4ef6\u3092\u8a2d\u5b9a\u3057\u3001create\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001GAS\u30b3\u30fc\u30c9\u304b\u3089\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u306f\u51685\u7a2e\u985e<\/h2>\n\n\n\n<p>newTrigger\u30e1\u30bd\u30c3\u30c9\u3067\u751f\u6210\u3057\u305f\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u306e\u306f5\u7a2e\u985e\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>ClockTriggerBuilder(\u6642\u9593\u4e3b\u5c0e\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc)<\/li>\n\n\n\n<li>SpreadsheetTriggerBuilder(\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc)<\/li>\n\n\n\n<li>DocumentTriggerBuilder(Google\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc)<\/li>\n\n\n\n<li>FormTriggerBuilder(Google\u30d5\u30a9\u30fc\u30e0\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc)<\/li>\n\n\n\n<li>CalendarTriggerBuilder(\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc)<\/li>\n<\/ol>\n\n\n\n<p>\u3053\u306e5\u3064\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u306e\u4e2d\u3067\u3001\u6700\u3082\u5229\u7528\u983b\u5ea6\u304c\u591a\u3044\u306e\u304c\u3001\u6642\u9593\u4e3b\u5c0e\u3068\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001\u4eca\u56de\u3001\u6642\u9593\u4e3b\u5c0e\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u3068\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u3092\u4e2d\u5fc3\u306b\u3001\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6642\u9593\u4e3b\u5c0e\u30c8\u30ea\u30ac\u30fc\u3092\u30b3\u30fc\u30c9\u3067\u4f5c\u6210<\/h2>\n\n\n\n<p>\u4eca\u56de\u3001triggerTest\u3068\u3044\u3046\u95a2\u6570\u306e\u6642\u9593\u4e3b\u5c0e\u30c8\u30ea\u30ac\u30fc\u3092ScriptApp.newTrigger\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Google Apps Script(GAS)\u306e\u30b3\u30fc\u30c9\u3067\u4f5c\u6210\u3067\u304d\u308b\u30c8\u30ea\u30ac\u30fc\u306f\u901a\u5e38\u306e\u30c8\u30ea\u30ac\u30fc7\u7a2e\u985e\u3044\u305a\u308c\u3082\u4f5c\u6210\u3067\u304d\u308b\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2460\u25cb\u5206\u5f8c\u306b\u5b9f\u884c\u3059\u308b1\u56de\u9650\u308a\u306e\u30c8\u30ea\u30ac\u30fc<\/h3>\n\n\n\n<p>after\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3068\u3001\u5b9f\u884c\u3057\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u304b\u3089\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u30df\u30ea\u79d2\u5f8c\u306b\u5b9f\u884c\u3059\u308b\u6642\u9593\u4e3b\u5c0e\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function setTrigger(){\n  \/\/\u65b0\u3057\u3044\u30c8\u30ea\u30ac\u30fc\u3092\u8a2d\u5b9a\u3059\u308b(2\u5206\u5f8c\u306b\u5b9f\u884c)\n  \/\/ScriptApp.newTrigger('test').timeBased().after(2 * 60 * 1000).create();\n}<\/code><\/pre>\n\n\n\n<p>\u5f15\u6570\u306f\u5206\u3084\u6642\u9593\u3001\u79d2\u3067\u306f\u306a\u304f\u3001\u30df\u30ea\u79d2\u3067\u3042\u308b\u70b9\u304c\u6ce8\u610f\u70b9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b2\u5206\u5f8c\u306b\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306f\u30012 * 60(\u79d2) * 1000(\u30df\u30ea\u79d2)\u3068\u30df\u30ea\u79d2\u306b\u5909\u63db\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>after\u30e1\u30bd\u30c3\u30c9\u3067\u4f5c\u6210\u3057\u305f\u30c8\u30ea\u30ac\u30fc\u306f\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u4e00\u5ea6\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u7121\u52b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2461\u7279\u5b9a\u65e5\u6642\u306b\u5b9f\u884c\u3059\u308b1\u56de\u9650\u308a\u306e\u30c8\u30ea\u30ac\u30fc<\/h3>\n\n\n\n<p>\u7d9a\u3044\u3066\u7279\u5b9a\u65e5\u6642\u306b\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u306fat\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u3001\u5f15\u6570\u306bDate\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function setTrigger(){\n  \/\/Date\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u5b9f\u884c\u6642\u70b9\u306e\u65e5\u6642\u3092\u53d6\u5f97\n  let time = new Date();\n  \/\/setHours,setMinutes\u3067\u30c8\u30ea\u30ac\u30fc\u5b9f\u884c\u6642\u523b\u3092\u8a2d\u5b9a(\u4eca\u56de\u306f18:30)\n  time.setHours(18);\n  time.setMinutes(30);\n  \/\/newTrigger\u30e1\u30bd\u30c3\u30c9\u3067triggerTest\u3092\u7279\u5b9a\u65e5\u6642\u3067\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\n  ScriptApp.newTrigger('triggerTest').timeBased().at(time).create();\n}<\/code><\/pre>\n\n\n\n<p>\u5b9f\u884c\u3057\u305f\u3044\u30bf\u30a4\u30df\u30f3\u30b0\u3092setHours\u3084setMinutes\u3067\u6307\u5b9a\u3057\u3066\u3001\u597d\u304d\u306a\u6642\u523b\u306btriggerTest\u95a2\u6570\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001\u7279\u5b9a\u306e\u65e5\u6642\u3067\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u306f\u2460\u306e\u30c8\u30ea\u30ac\u30fc\u3068\u540c\u69d8\u306b\u3001\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3067\u306f\u306a\u304f\u4e00\u5ea6\u9650\u308a\u306e\u5b9f\u884c\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3082\u3057\u3001\u7279\u5b9a\u6642\u523b\u3067GAS\u95a2\u6570\u3092\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-autoworker-google-apps-script-gas-sikuli wp-block-embed-autoworker-google-apps-script-gas-sikuli\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"s98CTb70Jc\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=6383\">GAS\u3067\u7279\u5b9a\u6642\u523b\u3092\u6642\u9593\u6307\u5b9a\u3057\u3066\u7e70\u308a\u8fd4\u3057\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u65b9\u6cd5\uff01<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u3067\u7279\u5b9a\u6642\u523b\u3092\u6642\u9593\u6307\u5b9a\u3057\u3066\u7e70\u308a\u8fd4\u3057\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u65b9\u6cd5\uff01&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=6383&#038;embed=true#?secret=7HnI2H7bmt#?secret=s98CTb70Jc\" data-secret=\"s98CTb70Jc\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u24621,5,10,15,30\u5206\u3054\u3068\u306e\u5b9a\u671f\u5b9f\u884c\u30c8\u30ea\u30ac\u30fc<\/h3>\n\n\n\n<p>\u5206\u5358\u4f4d\u3067\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u306feveryMinutes\u30e1\u30bd\u30c3\u30c9\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function setTrigger(){\n  \/\/10\u5206\u3054\u3068\u306b\u7e70\u308a\u8fd4\u3057\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\n  ScriptApp.newTrigger('triggerTest').timeBased().everyMinutes(10).create();\n}<\/code><\/pre>\n\n\n\n<p>\u5f15\u6570\u306b\u8a2d\u5b9a\u3067\u304d\u308b\u306e\u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u8a2d\u5b9a\u53ef\u80fd\u306a\u5206\u30d9\u30fc\u30b9\u306e\u30bf\u30a4\u30de\u30fc\u3068\u540c\u3058\u30011\u5206\u30015\u5206\u300110\u5206\u300115\u5206\u300130\u5206\u306e5\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u6570\u5b57\u4ee5\u5916\u3092\u5f15\u6570\u306b\u6307\u5b9a\u3059\u308b\u3068\u3001GAS\u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c\u6642\u306b\u30a8\u30e9\u30fc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u24631,2,4,6,8,12\u6642\u9593\u3054\u3068\u306e\u5b9a\u671f\u5b9f\u884c\u30c8\u30ea\u30ac\u30fc<\/h3>\n\n\n\n<p> \u6642\u9593\u5358\u4f4d\u3067\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u306feveryHours\u30e1\u30bd\u30c3\u30c9\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002 <\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function setTrigger(){\n  \/\/4\u6642\u9593\u3054\u3068\u306b\u7e70\u308a\u8fd4\u3057\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\n  ScriptApp.newTrigger('triggerTest').timeBased().everyHours(4).create();\n}<\/code><\/pre>\n\n\n\n<p> \u5206\u30d9\u30fc\u30b9\u540c\u69d8\u306b\u5f15\u6570\u306b\u8a2d\u5b9a\u3067\u304d\u308b\u6570\u5024\u304c\u6c7a\u307e\u3063\u3066\u304a\u308a\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u306e\u6642\u9593\u30d9\u30fc\u30b9\u306e\u30bf\u30a4\u30de\u30fc\u8a2d\u5b9a\u5024\u3067\u3042\u308b\u30011\u6642\u9593\u30012\u6642\u9593\u30014\u6642\u9593\u30016\u6642\u9593\u30018\u6642\u9593\u300112\u6642\u9593\u306e6\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002 <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2464\u65e5\u6b21\u306e\u5b9a\u671f\u5b9f\u884c\u30c8\u30ea\u30ac\u30fc<\/h3>\n\n\n\n<p>\u6bce\u65e5\u6c7a\u307e\u3063\u305f\u6642\u9593\u5e2f\u306b\u5b9f\u884c\u3059\u308b\u5b9a\u671f\u5b9f\u884c\u30c8\u30ea\u30ac\u30fc\u306fGAS\u306eeveryDays\u30e1\u30bd\u30c3\u30c9\u3068atHour\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function setTrigger(){\n  \/\/\u6bce\u65e520~21\u6642\u306b\u7e70\u308a\u8fd4\u3057\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\n  ScriptApp.newTrigger('triggerTest').timeBased().everyDays(1).atHour(20).create();\n}<\/code><\/pre>\n\n\n\n<p>everyDays\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306f\u672c\u6765\u300cn\u65e5\u3054\u3068\u300d\u306e\u6570\u5b57\u3092\u30bb\u30c3\u30c8\u3057\u307e\u3059\u304c\u3001\u4f55\u3092\u5165\u308c\u3066\u3082\u6bce\u65e5\u306e\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001\u5f15\u6570\u3092\u7701\u7565\u3059\u308b\u3068\u30a8\u30e9\u30fc\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u5206\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u306b\u6bce\u65e5\uff1d1\u65e5\u3054\u3068\u306e1\u3092\u5165\u308c\u308b\u306e\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n\n\n\n<p>atHour\u30e1\u30bd\u30c3\u30c9\u3067\u3069\u306e\u6642\u9593\u5e2f\u306b\u5b9f\u884c\u3059\u308b\u304b\u8a2d\u5b9a\u3057\u307e\u3059\u304c\u3001\u7701\u7565\u3057\u305f\u5834\u5408\u3001\u5b9f\u884c\u6642\u9593\u5e2f\u306f\u5348\u524d0\u6642\uff5e1\u6642\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2465\u9031\u6b21\u306e\u5b9a\u671f\u5b9f\u884c\u30c8\u30ea\u30ac\u30fc<\/h3>\n\n\n\n<p> \u6bce\u9031\u25cb\u66dc\u306a\u3069\u9031\u6b21\u306e\u5b9a\u671f\u5b9f\u884c\u30c8\u30ea\u30ac\u30fc\u306fGAS\u306eonWeekDay\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002 <\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function setTrigger(){\n  \/\/\u6bce\u9031\u65e5\u66dc\u306e\u5348\u524d4~5\u6642\u306b\u7e70\u308a\u8fd4\u3057\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\n  ScriptApp.newTrigger('triggerTest').timeBased().onWeekDay(ScriptApp.WeekDay.SUNDAY).atHour(4).create();\n}<\/code><\/pre>\n\n\n\n<p>\u5f15\u6570\u306b\u6307\u5b9a\u3059\u308b\u306e\u306fScriptApp.WeekDay\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u66dc\u65e5\u306e\u5b9a\u6570\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5358\u306a\u308b\u6587\u5b57\u5217\u3068\u3057\u3066\u300cMONDAY\u300d\u3084\u300cFRIDAY\u300d\u306a\u3069\u8a2d\u5b9a\u3057\u3066\u3082\u5b9f\u884c\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u65e5\u6b21\u306e\u5834\u5408\u3068\u540c\u69d8\u306b\u5b9f\u884c\u3057\u305f\u3044\u6642\u9593\u5e2f\u3092atHour\u30e1\u30bd\u30c3\u30c9\u3067\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2466\u6708\u6b21\u306e\u5b9a\u671f\u5b9f\u884c\u30c8\u30ea\u30ac\u30fc<\/h3>\n\n\n\n<p>\u6642\u9593\u4e3b\u5c0e\u30c8\u30ea\u30ac\u30fc\u306e\u6700\u5f8c\u306fonMonthDay\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308b\u6708\u6b21\u306e\u5b9a\u671f\u5b9f\u884c\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function setTrigger(){\n  \/\/\u6bce\u67085\u65e5\u306e12-13\u6642\u306b\u7e70\u308a\u8fd4\u3057\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\n  ScriptApp.newTrigger('triggerTest').timeBased().onMonthDay(5).atHour(12).create();\n}<\/code><\/pre>\n\n\n\n<p>\u6bce\u6708\u4f55\u65e5\u306b\u5b9f\u884c\u3059\u308b\u304b\u3092\u5f15\u6570\u306b\u8a2d\u5b9a\u3057\u3001\u65e5\u6b21\u30fb\u9031\u6b21\u3068\u540c\u3058\u3088\u3046\u306batHour\u30e1\u30bd\u30c3\u30c9\u3067\u5b9f\u884c\u6642\u9593\u5e2f\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"522\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220914_auto_001-1024x522.jpg\" alt=\"Google Apps Script(GAS)\u3067ScriptApp.newTrigger\u30e1\u30bd\u30c3\u30c9\u3067\u6642\u9593\u4e3b\u5c0e\u3084\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c8\u30ea\u30ac\u30fc\u3092\u30b3\u30fc\u30c9\u304b\u3089\u4f5c\u6210\" class=\"wp-image-6401\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220914_auto_001-1024x522.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220914_auto_001-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220914_auto_001-768x392.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220914_auto_001-530x270.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220914_auto_001-565x288.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220914_auto_001-710x362.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220914_auto_001-725x370.jpg 725w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/09\/20220914_auto_001.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30c8\u30ea\u30ac\u30fc\u3092\u30b3\u30fc\u30c9\u3067\u4f5c\u6210<\/h2>\n\n\n\n<p>\u6642\u9593\u4e3b\u5c0e\u306e\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u4ee5\u5916\u306b\u5229\u7528\u983b\u5ea6\u304c\u9ad8\u3044\u306e\u304c\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30c8\u30ea\u30ac\u30fc\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30c8\u30ea\u30ac\u30fc\u3067\u306f\u3001ScriptApp.newTrigger\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u3057\u3001forSpreadsheet\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u751f\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30c8\u30ea\u30ac\u30fc\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u306e\u306f\u3001\u4e3b\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u7de8\u96c6\u6642(onEdit)\u30fb\u5909\u66f4\u6642(onChange)\u30fb\u8d77\u52d5\u6642(onOpen)\u306e3\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter\"><code>function setTrigger(){\n  \/\/\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u3057\u305f\u3044\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u3080\n  const ss = SpreadsheetApp.openById('\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u3057\u305f\u3044\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8ID');\n  \/\/\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u7de8\u96c6\u3057\u305f\u6642\u306e\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\n  ScriptApp.newTrigger('triggerTest').forSpreadsheet(ss).onEdit().create();\n  \/\/\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u5909\u66f4\u3057\u305f\u6642\u306e\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\n  ScriptApp.newTrigger('triggerTest').forSpreadsheet(ss).onChange().create();\n  \/\/\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u8d77\u52d5\u3057\u305f\u6642\u306e\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\n  ScriptApp.newTrigger('triggerTest').forSpreadsheet(ss).onOpen().create();\n}<\/code><\/pre>\n\n\n\n<p>\u203b\u4ed6\u306b\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u9001\u4fe1\u6642\u306e\u300conFormSubmit\u300d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u7de8\u96c6\u6642\u306b\u30c8\u30ea\u30ac\u30fc\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306f\u3001newTrigger\u2192forSpreadsheet\u2192onEdit\u2192create\u306e\u9806\u756a\u3067\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u9806\u756a\u3092\u5909\u66f4\u3059\u308b\u3068\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u306e\u51e6\u7406\u304c\u5b9f\u884c\u30a8\u30e9\u30fc\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b3\u30f3\u30c6\u30ca\u30d0\u30a4\u30f3\u30c9\u578b\u3067\u306a\u304f\u3066\u3082\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u53ef\u80fd<\/h2>\n\n\n\n<p>\u306a\u304a\u3001\u524d\u8ff0\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30c8\u30ea\u30ac\u30fc\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u3001newTrigger\u306e\u5f15\u6570\u306bSpreadsheetApp.openById\u3067\u8aad\u307f\u8fbc\u3093\u3060\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u901a\u5e38\u306eGoogle Apps Script(GAS)\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30c8\u30ea\u30ac\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u7d10\u3065\u304f\u30b3\u30f3\u30c6\u30ca\u30d0\u30a4\u30f3\u30c9\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001 ScriptApp.newTrigger\u30e1\u30bd\u30c3\u30c9\u306e\u5834\u5408\u3001\u30b3\u30f3\u30c6\u30ca\u30d0\u30a4\u30f3\u30c9\u3067\u306f\u306a\u3044\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30f3\u306aGAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c8\u30ea\u30ac\u30fc\u5b9f\u884c\u3059\u308b\u95a2\u6570\u306e\u5f15\u6570\u306b\u30c8\u30ea\u30ac\u30fc\u30a4\u30d9\u30f3\u30c8\u3092\u683c\u7d0d\u3059\u308b\u5909\u6570e\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u3051\u3070\u3001\u7de8\u96c6\u3055\u308c\u305f\u30bb\u30eb\u304c\u3069\u3053\u304b\u306a\u3069\u3082\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">create\u30e1\u30bd\u30c3\u30c9\u3092\u672b\u5c3e\u306b\u5fd8\u308c\u305a\u306b<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u306eScriptApp.newTrigger\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308b\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u3092\u7d39\u4ecb\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u5fc5\u305acreate\u30e1\u30bd\u30c3\u30c9\u3092\u3064\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306ecreate\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u308c\u307e\u3067\u6761\u4ef6\u8a2d\u5b9a\u3057\u305f\u30c8\u30ea\u30ac\u30fc\u3092\u6709\u52b9\u5316\u3057\u3066\u3001\u30c8\u30ea\u30ac\u30fc\u4e00\u89a7\u306b\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>create\u30e1\u30bd\u30c3\u30c9\u3092\u3064\u3051\u5fd8\u308c\u308b\u3068\u3001\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u304c\u5b8c\u4e86\u305b\u305a\u306b\u3001\u30c8\u30ea\u30ac\u30fc\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001GAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u3059\u308b\u5834\u5408\u306f\u3001\u5fc5\u305a<em>ScriptApp.newTrigger<\/em>\u306e\u6700\u5f8c\u306bcreate\u30e1\u30bd\u30c3\u30c9\u3092\u4ed8\u4e0e\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001create\u30e1\u30bd\u30c3\u30c9\u306f\u30c8\u30ea\u30ac\u30fc\u6761\u4ef6\u306e\u30e1\u30bd\u30c3\u30c9(timeBased\u3084everyday)\u306e\u5f8c\u308d\u306b\u3064\u3051\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p><em>ScriptApp.newTrigger(&#8216;\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u3057\u305f\u3044\u95a2\u6570\u540d&#8217;)<\/em>\u306e\u76f4\u5f8c\u306bcreate\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3082\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a8\u30c7\u30a3\u30bf\u3067\u306e\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u304c\u96e3\u3057\u3044\u5834\u5408\u306b<\/h2>\n\n\n\n<p><em>ScriptApp.newTrigger<\/em>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u306f\u3001\u901a\u5e38\u5229\u7528\u3059\u308b\u6a5f\u4f1a\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>Google Apps Script(GAS)\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u306b\u7528\u610f\u3055\u308c\u305f\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u753b\u9762\u304b\u3089\u767b\u9332\u3067\u304d\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u3063\u305f\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u3067\u306f\u5b9f\u73fe\u304c\u96e3\u3057\u3044\u30b1\u30fc\u30b9\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u65e5\u6b21\u30fb\u9031\u6b21\u3068\u3044\u3063\u305f\u983b\u5ea6\u3067\u7279\u5b9a\u6642\u523b\u306b\u7e70\u308a\u8fd4\u3057\u3066\u5b9a\u671f\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408<\/li>\n\n\n\n<li>\u6df1\u591c\u306a\u3069\u306e\u7279\u5b9a\u306e\u6642\u9593\u5e2f\u306b\u3001\u30c7\u30fc\u30bf\u53d6\u5f97\u306a\u3069\u4e0d\u5b9a\u306a\u56de\u6570\u3092\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408<\/li>\n<\/ol>\n\n\n\n<p>\u3053\u3046\u3057\u305f\u30b1\u30fc\u30b9\u306b\u304a\u3044\u3066\u306f\u3001newTrigger\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3088\u308b\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u304c\u6709\u52b9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001\u307e\u305a\u901a\u5e38\u306eGUI\u306b\u3088\u308b\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u3067\u5b9f\u73fe\u53ef\u80fd\u304b\u691c\u8a0e\u3057\u3001\u96e3\u3057\u3051\u308c\u3070\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3088\u308b\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u3092\u884c\u3046\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u3067\u901a\u5e38\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u304b\u3089\u8a2d\u5b9a\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u3092\u30b3\u30fc\u30c9\u304b\u3089\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>ScriptApp.newTrigger\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u3001\u8a2d\u5b9a\u3057\u305f\u3044\u30c8\u30ea\u30ac\u30fc\u30d3\u30eb\u30c0\u30fc\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u3067\u6642\u9593\u4e3b\u5c0e\u306e\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u5b9f\u884c\u3084\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u64cd\u4f5c\u6642\u306e\u30c8\u30ea\u30ac\u30fc\u5b9f\u884c\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>GAS\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u304b\u3089GUI\u8a2d\u5b9a\u3057\u3066\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u304c\u3001\u8907\u96d1\u306a\u5b9f\u884c\u5236\u5fa1\u3092\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u30b3\u30fc\u30c9\u304b\u3089\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u3057\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3046\u3057\u305f\u5834\u5408\u306b\u306f\u3001\u4eca\u56de\u7d39\u4ecb\u3057\u305f\u5f62\u3067\u3001\u5404\u7a2e\u6642\u9593\u4e3b\u5c0e\u306e\u30c8\u30ea\u30ac\u30fc\u3084\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30c8\u30ea\u30ac\u30fc\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001\u5b9f\u884c\u6642\u306b\u306fcreate\u30e1\u30bd\u30c3\u30c9\u3092\u5fd8\u308c\u308b\u3068\u30c8\u30ea\u30ac\u30fc\u4f5c\u6210\u304c\u5b8c\u4e86\u3057\u306a\u3044\u306e\u3067\u3001\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u306e\u30c8\u30ea\u30ac\u30fc\u767b\u9332\u306f\u901a\u5e38\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u306eGUI\u304b\u3089\u8a2d\u5b9a\u3057\u307e\u3059\u304c\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 \u305d\u3053\u3067\u3001GAS\u306eScriptApp.newTrigger\u30e1\u30bd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6401,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[14,1039,1038],"class_list":["post-6397","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gas","tag-gas","tag-newtrigger","tag-1038"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6397"}],"version-history":[{"count":5,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6397\/revisions"}],"predecessor-version":[{"id":8826,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6397\/revisions\/8826"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/6401"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}