{"id":1602,"date":"2020-08-28T08:32:13","date_gmt":"2020-08-27T23:32:13","guid":{"rendered":"https:\/\/google-apps-script.net\/instructions\/?p=1602"},"modified":"2022-04-11T17:14:53","modified_gmt":"2022-04-11T08:14:53","slug":"how-to-set-onedit-triggers-for-spreadsheets-by-gas","status":"publish","type":"post","link":"https:\/\/for-dummies.net\/gas-noobs\/how-to-set-onedit-triggers-for-spreadsheets-by-gas\/","title":{"rendered":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u7de8\u96c6\u3059\u308b\u6bce\u306b\u8d77\u52d5\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u306e\u4f5c\u6210\u65b9\u6cd5"},"content":{"rendered":"\n<h2>onEdit\u30c8\u30ea\u30ac\u30fc\u306e\u4f5c\u6210\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u30c7\u30fc\u30bf\u7ba1\u7406\u3092\u3057\u3066\u3044\u308b\u3068\u3001\u3053\u306e\u30bb\u30eb\u3092\u7de8\u96c6\u3057\u305f\u6642\u306b\u7279\u5b9a\u306e\u30bb\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u5165\u308c\u305f\u308a\u5909\u66f4\u3057\u305f\u3044\u6642\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u95a2\u6570\u3067\u51e6\u7406\u3067\u304d\u308b\u5185\u5bb9\u3067\u3042\u308c\u3070\u95a2\u6570\u3092\u5165\u308c\u3066\u3057\u307e\u3063\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001<span class=\"swl-marker mark_orange\"><strong>\u95a2\u6570\u304c\u8907\u96d1\u306b\u306a\u308a\u3059\u304e\u3066\u3057\u307e\u3063\u305f\u308a\u3001GAS\u7279\u6709\u306e\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u305f\u3044\uff08Google Drive\u306b\u65b0\u898f\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3084\u30e1\u30fc\u30eb\u306e\u9001\u4fe1\u306a\u3069\uff09\u6642\u306b\u306fGAS\u3092\u4f7f\u308f\u3056\u308b\u3092\u5f97\u306a\u3044\u72b6\u6cc1<\/strong><\/span>\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u4eca\u56de\u306f<span class=\"swl-marker mark_orange\"><strong>GAS\u306b\u3042\u308b\u30c8\u30ea\u30ac\u30fc\u3068\u3044\u3046\u6a5f\u80fd\u306b\u3064\u3044\u3066\u89e3\u8aac<\/strong><\/span>\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-group is-style-big_icon_hatena\"><div class=\"wp-block-group__inner-container\">\n<ul class=\"is-style-check_list\"><li>\u30c8\u30ea\u30ac\u30fc\u3063\u3066\u4f55\uff1f<\/li><li>\u30c8\u30ea\u30ac\u30fc\u3063\u3066\u8907\u6570\u3042\u308b\u3051\u3069\u4f55\u304c\u9055\u3046\u306e\uff1f<\/li><li>\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30d6\u30eb\u3063\u3066\u306a\u306b\uff1f<\/li><\/ul>\n<\/div><\/div>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306a\u7591\u554f\u306b\u304a\u7b54\u3048\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2>\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u304c\u5f79\u7acb\u3064\u30bf\u30fc\u30b2\u30c3\u30c8\u8aad\u8005<\/h2>\n\n\n\n<div class=\"wp-block-group has-border -border01\"><div class=\"wp-block-group__inner-container\">\n<ol class=\"is-style-num_circle -list-under-dashed\"><li>\u30bb\u30eb\u3092\u5165\u529b\u3057\u305f\u6642\u306b\u7279\u5b9a\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u305f\u3044<\/li><li>\u30c8\u30ea\u30ac\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u30bb\u30eb\u304c\u7de8\u96c6\u3055\u308c\u308b\u3068\u8d77\u52d5\u3055\u308c\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u305f\u3044<\/li><li>\u95a2\u6570\u3067\u306f\u306a\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u30b3\u30fc\u30c9\u3067\u591a\u5c90\u306b\u308f\u305f\u308b\u51e6\u7406\u3092\u3057\u305f\u3044<\/li><li>\u30b3\u30fc\u30c9\u3060\u3051\u3067\u30c8\u30ea\u30ac\u30fc\u304c\u4f5c\u308c\u308b\u306e\uff1f\u3068\u3044\u3046\u65b9<\/li><li>onEdit\/onSelectionChange\u3063\u3066\u4f55\uff1f\u3068\u3044\u3046\u65b9<\/li><li>\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\uff1f\u30a4\u30f3\u30b9\u30c8\u30e9\u30fc\u30d6\u30eb\u30c8\u30ea\u30ac\u30fc\uff1f\u3088\u304f\u308f\u304b\u3089\u306a\u3044\uff01\u3068\u3044\u3046\u65b9<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<h2>\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb<\/h2>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img src=\"https:\/\/i2.wp.com\/google-apps-script.net\/instructions\/wp-content\/uploads\/2020\/08\/2020-08-15-15.44.07-342522075-1597546566932.png?ssl=1&amp;w=5496\" alt=\"trigger msgbox\" class=\"wp-image-1578\" width=\"1221\" height=\"989\" srcset=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/2020-08-15-15.44.07-342522075-1597546566932.png?w=1221&amp;ssl=1 1221w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/2020-08-15-15.44.07-342522075-1597546566932.png?resize=300%2C243&amp;ssl=1 300w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/2020-08-15-15.44.07-342522075-1597546566932.png?resize=768%2C622&amp;ssl=1 768w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/2020-08-15-15.44.07-342522075-1597546566932.png?resize=1024%2C829&amp;ssl=1 1024w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/2020-08-15-15.44.07-342522075-1597546566932.png?resize=264%2C214&amp;ssl=1 264w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/2020-08-15-15.44.07-342522075-1597546566932.png?resize=282%2C228&amp;ssl=1 282w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>\u4eca\u56de\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u6587\u5b57\u3092\u5165\u308c\u308b\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u6a5f\u80fd\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u30aa\u30fc\u30bd\u30c9\u30c3\u30af\u30b9\u306a\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u306e\u4ed5\u65b9\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2>\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u65b9\u6cd5\uff08\u30a4\u30f3\u30b9\u30c8\u30e9\u30fc\u30d6\u30eb\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\uff09<\/h2>\n\n\n\n<div class=\"swell-block-step\" data-num-style=\"circle\">\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u958b\u304f<\/div><div class=\"swell-block-step__body\">\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u958b\u304d\u3000\u30c4\u30fc\u30eb\u2192\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u30af\u30ea\u30c3\u30af\u3057\u30b3\u30fc\u30c9\u5165\u529b\u753b\u9762\u3092\u958b\u304d\u307e\u3059<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u30da\u30fc\u30b8\u3092\u958b\u304f<\/div><div class=\"swell-block-step__body\">\n<p>\u4ee5\u4e0b\u306e\u8d64\u90e8\u5206\u3092\u30af\u30ea\u30c3\u30af<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/2020-08-16-10.53.08.png?resize=1563%2C653&#038;ssl=1\" alt=\"\" width=\"1563\" height=\"653\" data-recalc-dims=\"1\" \/><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u30c8\u30ea\u30ac\u30fc\u3092\u8ffd\u52a0\u3059\u308b<\/div><div class=\"swell-block-step__body\">\n<p>\u53f3\u4e0b\u306e\u30c8\u30ea\u30ac\u30fc\u3092\u8ffd\u52a0\u3092\u30af\u30ea\u30c3\u30af<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/2020-08-16-10.52.07.png?resize=2429%2C1263&#038;ssl=1\" alt=\"\" width=\"2429\" height=\"1263\" data-recalc-dims=\"1\" \/><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u5b9f\u884c\u8a31\u53ef\u3092\u4ed8\u4e0e\u3059\u308b<\/div><div class=\"swell-block-step__body\">\n<p>\u521d\u3081\u3066\u30c8\u30ea\u30ac\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u969b\u306f\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6c42\u3081\u308b\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e0b\u8a18\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\" data-style=\"card\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img src=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2018\/06\/script-editor-1.png?fit=300%2C158&#038;ssl=1\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/for-dummies.net\/gas-noobs\/how-to-set-gas-scopes-for-free-google-account\/\">\u7121\u6599\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067GAS\u306b\u521d\u56de\u306e\u5b9f\u884c\u8a31\u53ef\u3092\u4e0e\u3048\u308b\u65b9\u6cd5\u3010\u8d85\u5165\u9580\u3011<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u4eca\u56de\u3068\u6b21\u56de\u306e\u6295\u7a3f\u3067\u306f\u3001Google Apps Script\u3067\u305d\u306e\u4ed6\u306eG Suite\u30b5\u30fc\u30d3\u30b9\u306e\u64cd\u4f5c\u3092\u884c\u3046\u969b\u306b\u5fc5\u8981\u306a\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002Google\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u306f\u7121\u6599\u306eGoogle\u30a2\u30ab\u30a6&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div><\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u30c8\u30ea\u30ac\u30fc\u3092\u8a2d\u5b9a\u3059\u308b<\/div><div class=\"swell-block-step__body\">\n<p>\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u7de8\u96c6\u3057\u305f\u6642\u306b\u8d77\u52d5\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308a\u305f\u3044\u306e\u3067<\/p>\n\n\n\n<p><strong>\u30a4\u30d9\u30f3\u30c8\u306e\u30bd\u30fc\u30b9\uff1a<\/strong><span class=\"swl-marker mark_orange\"><strong>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089<\/strong><\/span><\/p>\n\n\n\n<p><strong>\u30a4\u30d9\u30f3\u30c8\u306e\u7a2e\u985e\u3092\u9078\u629e\uff1a<\/strong><span class=\"swl-marker mark_orange\"><strong>\u7de8\u96c6\u6642<\/strong><\/span><\/p>\n\n\n\n<p>\u3092\u8a2d\u5b9a\u3057\u3066\u4fdd\u5b58\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/2020-08-16-10.51.52.png?resize=1209%2C1156&#038;ssl=1\" alt=\"\" width=\"1209\" height=\"1156\" data-recalc-dims=\"1\" \/><\/figure>\n<\/div><\/div>\n<\/div>\n\n\n\n<h2>\u30c0\u30a4\u30a2\u30ed\u30b0\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4f5c\u6210<\/h2>\n\n\n\n<p>\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u306f\u7d42\u308f\u308a\u307e\u3057\u305f\u306e\u3067\u30b3\u30fc\u30c9\u3092\u8a18\u5165\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"Installable Triggers\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"JavaScript\"><code>\/\/\u30c8\u30ea\u30ac\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\nfunction myFunction() {\n  Browser.msgBox(&#39;\u30bb\u30eb\u304c\u7de8\u96c6\u3055\u308c\u307e\u3057\u305f\u3002&#39;);  \n}<\/code><\/pre><\/div>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30da\u3057\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u9589\u3058\u3066\u304b\u3089\u3069\u3053\u306e\u30bb\u30eb\u3067\u3082\u3044\u3044\u306e\u3067\u6587\u5b57\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b\u300e<span class=\"swl-marker mark_orange\"><strong>\u30bb\u30eb\u304c\u7de8\u96c6\u3055\u308c\u307e\u3057\u305f\u3002<\/strong><\/span>\u300f\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u30bb\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3068\u8d77\u52d5\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b8c\u6210\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3053\u306e\u3088\u3046\u306b<span class=\"swl-marker mark_orange\"><strong>\u81ea\u5206\u3067\u8a2d\u5b9a\u3059\u308b\u30bf\u30a4\u30d7\u306e\u30c8\u30ea\u30ac\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30e9\u30fc\u30d6\u30eb\u30c8\u30ea\u30ac\u30fc<\/strong><\/span>\uff08Installable Triggers\uff09\u3068\u8a00\u3044\u307e\u3059\u3002\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u65b9\u6cd5\u306b\u306f<span class=\"swl-marker mark_orange\"><strong>\u4ed6\u306b\u3082\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b<\/strong><\/span>\u306e\u3067\u3053\u308c\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2>\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u65b9\u6cd5\uff08\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\uff09<\/h2>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u65b9\u6cd5\u3092\u4f7f\u3046\u3068\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3060\u3051\u3067\u7c21\u5358\u306b\u5148\u307b\u3069\u3068\u540c\u3058\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5148\u307b\u3069\u8a2d\u5b9a\u3057\u305f\u30c8\u30ea\u30ac\u30fc\u3092\u524a\u9664\u3057\u3066\u304b\u3089\u3001\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4e0a\u66f8\u304d\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"Simple Triggers\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"JavaScript\"><code>\/\/\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\nfunction onEdit() {\n  Browser.msgBox(&quot;\u30bb\u30eb\u304c\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u3067\u7de8\u96c6\u3055\u308c\u307e\u3057\u305f\u3002&quot;);\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u30bb\u30eb\u306b\u6587\u5b57\u3092\u5165\u308c\u3066\u307f\u308b\u3068\u300e<span class=\"swl-marker mark_orange\"><strong>\u30bb\u30eb\u304c\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u3067\u7de8\u96c6\u3055\u308c\u307e\u3057\u305f\u3002<\/strong><\/span>\u300f\u3068\u51fa\u3066\u304d\u307e\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b<span class=\"swl-marker mark_orange\"><strong>\u81ea\u5206\u3067\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u306e\u5fc5\u8981\u304c\u306a\u3044\u95a2\u6570\u3092\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc<\/strong><\/span>\uff08Simple Triggers\uff09\u3068\u8a00\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3058\u3083\u3042\u3053\u3063\u3061\u306e\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u3060\u3051\u3067\u3084\u3063\u305f\u65b9\u304c\u7c21\u5358\u3067\u3044\u3044\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u304c\u3001\u5b9f\u306f\u3053\u306e<span class=\"swl-marker mark_orange\"><strong>\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u306b\u306f\u8272\u3005\u306a\u5236\u7d04\u304c\u3042\u308b<\/strong><\/span>\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u3042\u305f\u308a\u306e\u89e3\u8aac\u306b\u3064\u3044\u3066\u306f\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\" data-style=\"card\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img src=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/01\/logo.jpeg?fit=291%2C123&#038;ssl=1\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/for-dummies.net\/gas-noobs\/how-to-excute-gas-functions-from-smartphones-and-tablets\/\">\u3010GAS\u3011\u30b9\u30de\u30db\u3084\u30bf\u30d6\u30ec\u30c3\u30c8\u304b\u3089\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u3010GAS\u3067\u30e2\u30d0\u30a4\u30eb\u7aef\u672b\u304b\u3089\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3011 \u3053\u306e\u30d6\u30ed\u30b0\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u65b9\u306e\u691c\u7d22\u30ef\u30fc\u30c9\u3092\u5206\u6790\u3057\u3066\u3044\u308b\u3068\u3001\u591a\u304f\u306e\u65b9\u304c\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3084\u30bf\u30d6\u30ec&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<h2><strong>onSelectionChange()\u6a5f\u80fd\u306b\u3064\u3044\u3066<\/strong><\/h2>\n\n\n\n<p>onEdit\u30c8\u30ea\u30ac\u30fc\u306e\u4ed6\u306b\u3001onSelectionChange\u3068\u3044\u3046\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u30c8\u30ea\u30ac\u30fc\u306f\u6bd4\u8f03\u7684\u65b0\u3057\u3044\u30c8\u30ea\u30ac\u30fc\u3067\u3001\u30c8\u30ea\u30ac\u30fc\u306e\u767a\u52d5\u6761\u4ef6\u306f\u6b21\u306e2\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-group has-border -border01\"><div class=\"wp-block-group__inner-container\">\n<ul><li>\u30bb\u30eb\u306e\u9078\u629e\u7bc4\u56f2\u304c\u5909\u66f4\u3055\u308c\u308b\u6bce<\/li><li>\u30b7\u30fc\u30c8\u3092\u79fb\u52d5\u3055\u305b\u308b\u6bce<\/li><\/ul>\n<\/div><\/div>\n\n\n\n<p>onEdit\u3068\u306f\u7570\u306a\u308a\u3001<span class=\"swl-marker mark_orange\"><strong>\u30bb\u30eb\u306e\u7de8\u96c6\u6642\u3084\u884c\u5217\u306e\u8ffd\u52a0\u30fb\u524a\u9664\u304c\u884c\u308f\u308c\u308b\u305f\u3073\u306b\u8d77\u52d5\u306f\u3055\u308c\u307e\u305b\u3093<\/strong><\/span>\u3002<\/p>\n\n\n\n<p>\u30bb\u30eb\u306e\u9078\u629e\u7bc4\u56f2\u304c\u5909\u66f4\u3055\u308c\u308b\u6642\u306e\u307f\u8d77\u52d5\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u3067\u3059\u3002<\/p>\n\n\n\n<h2>\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u306e\u5236\u7d04\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306eTips<\/h2>\n\n\n\n<p>\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u306e\u5236\u7d04\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u306f\u3001<span class=\"swl-marker mark_orange\"><strong>\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30d6\u30eb\u30c8\u30ea\u30ac\u30fc\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046<\/strong><\/span>\u3002<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306a\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30d0\u30f3\u30c9\u30eb\u3055\u308c\u305f\u30b3\u30fc\u30c9\u3067\u306a\u3051\u308c\u3070onEdit\u306a\u3069\u304c\u4f7f\u3048\u306a\u3044\u3068\u8a8d\u8b58\u3057\u3066\u3044\u308b\u65b9\u3082\u3044\u307e\u3059\u304c\u3001\u5916\u90e8\u30d5\u30a1\u30a4\u30eb\u3068\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u306e\u3067\u3001<span class=\"swl-marker mark_orange\"><strong>\u30b7\u30f3\u30d7\u30eb\u30c8\u30ea\u30ac\u30fc\u3067\u3067\u304d\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30d6\u30eb\u30c8\u30ea\u30ac\u30fc\u3067\u3067\u304d\u306a\u3044\u3053\u3068\u306f\u307b\u3068\u3093\u3069\u306a\u3044<\/strong><\/span>\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203b<span class=\"swl-marker mark_orange\"><strong>\u30ab\u30b9\u30bf\u30e0\u95a2\u6570\u306e\u958b\u767a\u306f\u30d0\u30f3\u30c9\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3058\u3083\u306a\u3044\u3068\u3067\u304d\u306a\u3044<\/strong><\/span>\u3067\u3059\u304c\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\" data-style=\"card\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img src=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/06\/bundleToStandalone.png?fit=300%2C113&#038;ssl=1\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/for-dummies.net\/gas-noobs\/how-to-create-onedit-triggered-functions-in-a-different-gas-files\/\">5\u3064\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u5b9f\u73fe\u3059\u308bonEdit\u30c8\u30ea\u30ac\u30fc\u3092\u5916\u51fa\u3057\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u4ee5\u524d\u6295\u7a3f\u3057\u305f\u300e\u3010GAS\u3011\u30b9\u30de\u30db\u3084\u30bf\u30d6\u30ec\u30c3\u30c8\u304b\u3089\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u300f\u3068\u3044\u3046\u8a18\u4e8b\u304c\u4eba\u6c17\u8a18\u4e8b\u3068\u306a\u308a\u3001\u6bce\u65e5\u8272\u3005\u306a\u4eba\u306b\u8aad\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u306f\u3068\u3066\u3082\u5b09\u3057&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<h2>\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30eb\u3092\u7de8\u96c6\u3059\u308b\u6bce\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8d77\u52d5\u3055\u305b\u308b\u305f\u3081\u306e\u30c8\u30ea\u30ac\u30fc\u8a2d\u5b9a\u304c\u4f5c\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u307e\u305f\u30c8\u30ea\u30ac\u30fc\u306e\u7a2e\u985e\u30fb\u5404\u6a5f\u80fd\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u3082\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u308b\u3060\u3051\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u6a5f\u80fd\u3092\u5fdc\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u4f5c\u696d\u8005\u306e\u30df\u30b9\u306e\u4f4e\u4e0b\u3084\u52b9\u7387\u5316\u3092\u884c\u3046\u3053\u3068\u304c\u51fa\u6765\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305c\u3072\u3053\u306e\u6a5f\u80fd\u3092\u899a\u3048\u3066\u3044\u305f\u3060\u304d\u3001\u30bb\u30eb\u304c\u7de8\u96c6\u3055\u308c\u308b\u969b\u306b\u5b9f\u884c\u304c\u3067\u304d\u308b\u69d8\u3005\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u304a\u8aad\u307f\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u7de8\u96c6\u3059\u308b\u6bce\u306b\u8d77\u52d5\u3059\u308b\u305f\u3081\u306e\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\u307e\u305f\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3084\u7a2e\u985e\u306a\u3069\u3082\u753b\u50cf\u3068\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u5206\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":1628,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[16,80,15,76,81],"tags":[53,51,52,50,120,121],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/sheetsReference.png?fit=320%2C180&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9Z92k-pQ","jetpack_likes_enabled":true,"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/1602"}],"collection":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/comments?post=1602"}],"version-history":[{"count":10,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/1602\/revisions"}],"predecessor-version":[{"id":2839,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/1602\/revisions\/2839"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/media\/1628"}],"wp:attachment":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/media?parent=1602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/categories?post=1602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/tags?post=1602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}