{"id":11040,"date":"2018-11-19T15:00:31","date_gmt":"2018-11-19T06:00:31","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=11040"},"modified":"2018-11-19T17:07:56","modified_gmt":"2018-11-19T08:07:56","slug":"google-apps-script%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%89%e7%94%bb%e9%9d%a2%e3%81%84%e3%81%a3%e3%81%b1%e3%81%84%e3%81%ae%e5%a4%a7%e3%81%8d%e3%81%95%e3%81%a7%e5%8b%95%e7%94%bb%e3%82%92%e6%8c%bf%e5%85%a5","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=11040","title":{"rendered":"[Google Apps Script]\u30b9\u30e9\u30a4\u30c9\u753b\u9762\u3044\u3063\u3071\u3044\u306e\u5927\u304d\u3055\u3067\u52d5\u753b\u3092\u633f\u5165\u3059\u308b"},"content":{"rendered":"<p>\u4e45\u3057\u3076\u308a\u306eGoogle Apps Script\u30cd\u30bf\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u30b9\u30e9\u30a4\u30c9\u306e\u30b5\u30a4\u30ba\u306b\u5408\u308f\u305b\u3066\u52d5\u753b\u3092\u633f\u5165\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">function myFunction() {\r\n  var url = &quot;https:\/\/www.youtube.com\/watch?v=RmVAbB3M-4Y&quot;;\r\n  var prs = SlidesApp.getActivePresentation();\r\n  var slide = prs.getSlides()&#x5B;0];\r\n  slide.insertVideo(url)\r\n    .setDescription(&quot;\u52d5\u753b\u306e\u8aac\u660e\u3067\u3059\u3002&quot;)\r\n    .setTitle(&quot;\u52d5\u753b\u306e\u30bf\u30a4\u30c8\u30eb\u3067\u3059\u3002&quot;)\r\n    .setWidth(prs.getPageWidth())\r\n    .setHeight(prs.getPageHeight())\r\n    .alignOnPage(SlidesApp.AlignmentPosition.CENTER);\r\n}<\/pre>\n<p>\u30b9\u30e9\u30a4\u30c9\u306b\u52d5\u753b\u3092\u633f\u5165\u3059\u308b\u306b\u306f\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/slide#insertVideo(String)\" title=\"Class Slide  |  Apps Script  |  Google Developers\" target=\"_blank\">Slide.insertVideo<\/a>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u52d5\u753b\u306eURL\u3092\u5f15\u6570\u3068\u3057\u3066\u6307\u5b9a\u3059\u308b\u306e\u3067\u3059\u304c\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u73fe\u5728\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u306e\u306fYouTube\u306e\u52d5\u753b\u306e\u307f<\/span>\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u52d5\u753b\u306e\u5e45\u3068\u9ad8\u3055\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u306e\u306f<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/video#setWidth(Number)\" title=\"Class Video  |  Apps Script  |  Google Developers\" target=\"_blank\">Video.setWidth<\/a>\u30e1\u30bd\u30c3\u30c9\u3068<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/video#setHeight(Number)\" title=\"Class Video  |  Apps Script  |  Google Developers\" target=\"_blank\">Video.setHeight<\/a>\u30e1\u30bd\u30c3\u30c9\u3067\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/presentation#getPageWidth()\" title=\"Class Presentation  |  Apps Script  |  Google Developers\" target=\"_blank\">Presentation.getPageWidth<\/a>\u30e1\u30bd\u30c3\u30c9\u3068<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/presentation#getPageHeight()\" title=\"Class Presentation  |  Apps Script  |  Google Developers\" target=\"_blank\">Presentation.getPageHeight<\/a>\u30e1\u30bd\u30c3\u30c9\u3067\u53d6\u5f97\u3057\u305f\u30b9\u30e9\u30a4\u30c9\u306e\u5e45\u3068\u9ad8\u3055\u3092\u305d\u308c\u305e\u308c\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u633f\u5165\u3057\u305f\u52d5\u753b\u3092<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/video#alignOnPage(AlignmentPosition)\" title=\"Class Video  |  Apps Script  |  Google Developers\" target=\"_blank\">Video.alignOnPage<\/a>\u30e1\u30bd\u30c3\u30c9\u3067\u753b\u9762\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/video#alignOnPage(AlignmentPosition)\" title=\"Class Video  |  Apps Script  |  Google Developers\" target=\"_blank\">alignOnPage<\/a>\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u306f\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/alignment-position\" title=\"Enum AlignmentPosition  |  Apps Script  |  Google Developers\" target=\"_blank\">AlignmentPosition<\/a>\u5217\u6319\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_Slides_06_01.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_Slides_06_01.gif\" alt=\"\" width=\"905\" height=\"480\" class=\"alignnone size-full wp-image-11041\" \/><\/a><\/p>\n<p>\u3053\u306e<span style=\"color: #ff0000; font-weight: bold;\">\u201c\u5927\u304d\u3055\u3068\u9ad8\u3055\u3092\u30b9\u30e9\u30a4\u30c9\u306b\u5408\u308f\u305b\u3066\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308b\u201d<\/span>\u3068\u3044\u3046\u306e\u304c\u3001\u5730\u5473\u306a\u304c\u3089\u3088\u304f\u4f7f\u3046\u5927\u4e8b\u306a\u4e00\u624b\u9593\u3067\u3059\u3002<\/p>\n<div id=\"single_banner_area2\" class=\"clearfix one_banner\">\n<div class=\"single_banner single_banner_left\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u8a18\u4e8b\u4e2d(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u5e83\u544a\u30e6\u30cb\u30c3\u30c8) -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-7306936664602087\"\r\n     data-ad-slot=\"5429724765\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<div class=\"single_banner single_banner_right\">\n<a href=\"\" target=\"_blank\"><img decoding=\"async\" src=\"\" alt=\"\" title=\"\" \/><\/a>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"\u4e45\u3057\u3076\u308a\u306eGoogle Apps Script\u30cd\u30bf\u3067\u3059\u3002 \u4eca\u56de\u306f\u30b9\u30e9\u30a4\u30c9\u306e\u30b5\u30a4\u30ba\u306b\u5408\u308f\u305b\u3066\u52d5\u753b\u3092\u633f\u5165\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 function myFunction() { var url = &quot;https [&hellip;]","protected":false},"author":1,"featured_media":7113,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[[Google Apps Script]\u30b9\u30e9\u30a4\u30c9\u753b\u9762\u3044\u3063\u3071\u3044\u306e\u5927\u304d\u3055\u3067\u52d5\u753b\u3092\u633f\u5165\u3059\u308b]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[126],"tags":[],"class_list":["post-11040","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Google.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-2S4","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11040"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11040\/revisions"}],"predecessor-version":[{"id":11042,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11040\/revisions\/11042"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7113"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}