{"id":301,"date":"2025-05-26T14:26:44","date_gmt":"2025-05-26T05:26:44","guid":{"rendered":"https:\/\/cg-method.com\/google\/?p=301"},"modified":"2026-10-28T21:02:20","modified_gmt":"2026-10-28T12:02:20","slug":"google-drive-folder-listing-gas","status":"publish","type":"post","link":"https:\/\/cg-method.com\/google\/google-drive-folder-listing-gas\/","title":{"rendered":"Google\u30c9\u30e9\u30a4\u30d6\u2502\u30d5\u30a9\u30eb\u30c0\u5185\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u89a7\u53d6\u5f97\u3059\u308b\u30c4\u30fc\u30eb"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Google\u30c9\u30e9\u30a4\u30d6\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u62ec\u3067\u4e00\u89a7\u5316\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u306f\u30de\u30a4\u30c9\u30e9\u30a4\u30d6\u306e\u5c0f\u3055\u306a\u30d5\u30a9\u30eb\u30c0\u3092\u5bfe\u8c61\u306b\u3001\u5b9f\u884c\u8005\u304c\u95b2\u89a7\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u5217\u6319\u3057\u307e\u3059\u3002\u5171\u6709\u30c9\u30e9\u30a4\u30d6\u3092\u542b\u3080\u7d44\u7e54\u5168\u4f53\u306e\u68da\u5378\u3057\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u624b\u4f5c\u696d\u3067\u306e\u78ba\u8a8d\u306f\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u3067\u306f<strong>Google Apps Script\uff08GAS\uff09<\/strong>\u3092\u4f7f\u3063\u3066\u3001<strong>\u30d5\u30a9\u30eb\u30c0\u306eURL\u3092\u5165\u529b\u3059\u308b\u3060\u3051\u3067\u3001\u95b2\u89a7\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u60c5\u5831\u3092\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u4e00\u89a7\u51fa\u529b\u3059\u308b\u30c4\u30fc\u30eb<\/strong>\u306e\u5b9f\u88c5\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u51e6\u7406\u306e\u6d41\u308c<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u8ffd\u52a0\u3055\u308c\u305f\u30ab\u30b9\u30bf\u30e0\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u5b9f\u884c\u3057\u3001\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u306bGoogle\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a9\u30eb\u30c0URL\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u65b0\u898f\u30b7\u30fc\u30c8\u306b\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u89a7\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"swell-block-columns\" style=\"--clmn-w--pc:33.33%\"><div class=\"swell-block-columns__inner\">\n<div class=\"swell-block-column swl-has-mb--s\">\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"953\" height=\"177\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_47.png\" alt=\"\" class=\"wp-image-304\" srcset=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_47.png 953w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_47-300x56.png 300w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_47-768x143.png 768w\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"swell-block-column swl-has-mb--s\">\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"498\" height=\"325\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_00.png\" alt=\"\" class=\"wp-image-303\" srcset=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_00.png 498w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_00-300x196.png 300w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"swell-block-column swl-has-mb--s\">\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"510\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_42.png\" alt=\"Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a9\u30eb\u30c0\u5185\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u51fa\u529b\u4f8b\u3002\" class=\"wp-image-305\" srcset=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_42.png 780w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_42-300x196.png 300w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_42-768x502.png 768w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/figure>\n<\/div>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u51fa\u529b\u3055\u308c\u308b\u9805\u76ee\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list is-style-num_circle\">\n<li>\u30d5\u30a9\u30eb\u30c0\u540d<\/li>\n\n\n\n<li>\u30d5\u30a1\u30a4\u30eb\u540d<\/li>\n\n\n\n<li>\u4f5c\u6210\u65e5<\/li>\n\n\n\n<li>\u30aa\u30fc\u30ca\u30fc<\/li>\n\n\n\n<li>\u30d5\u30a1\u30a4\u30ebURL<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u5c0e\u5165\u30fb\u4f7f\u7528\u624b\u9806<\/h2>\n\n\n\n<ol class=\"wp-block-list is-style-num_circle\">\n<li>\u65b0\u898f\u307e\u305f\u306f\u5229\u7528\u5bfe\u8c61\u306eGoogle\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u4e0a\u90e8\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u62e1\u5f35\u6a5f\u80fd\u300d\u304b\u3089\u300cApps Script\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u8868\u793a\u3055\u308c\u305f\u30a8\u30c7\u30a3\u30bf\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u4fdd\u5b58\u3057\u307e\u3059\uff08\u30d5\u30a1\u30a4\u30eb\u540d\u306f <code>Code.gs<\/code>\uff09\u3002<\/li>\n\n\n\n<li>\u300c\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u300d\u304b\u3089HTML\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066 <code>FolderInputForm.html<\/code> \u3092\u4f5c\u6210\u3057\u3001\u5bfe\u5fdc\u3059\u308bHTML\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3059\u308b\u3068\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u306b\u5c02\u7528\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u3001\u305d\u3053\u304b\u3089\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p class=\"is-style-icon_pen wp-block-paragraph\">\u521d\u56de\u5b9f\u884c\u6642\u306b\u306f\u3001Google\u30a2\u30ab\u30a6\u30f3\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u627f\u8a8d\u3059\u308b\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u304c\u5b9f\u88c5\u30b3\u30fc\u30c9\u3067\u3059\u3002\u65e2\u5b58\u306eonOpen\u304c\u3042\u308b\u5834\u5408\u306f\u30e1\u30cb\u30e5\u30fc\u8ffd\u52a0\u51e6\u7406\u3092\u7d71\u5408\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305a\u30c6\u30b9\u30c8\u7528\u30d5\u30a9\u30eb\u30c0\u3068\u30b7\u30fc\u30c8\u3067\u8a66\u3057\u307e\u3059\u3002Google\u5b9f\u6a5f\u306e\u8a8d\u53ef\u30fb\u5217\u6319\u30fb\u753b\u9762\u8868\u793a\u306f\u4eca\u56de\u672a\u691c\u8a3c\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h18_24-1024x571.png\" alt=\"\u521d\u56de\u5b9f\u884c\u6642\u306b\u8868\u793a\u3055\u308c\u308bGoogle\u30a2\u30ab\u30a6\u30f3\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u627f\u8a8d\u30c0\u30a4\u30a2\u30ed\u30b0\u3002\" class=\"wp-image-306\" srcset=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h18_24-1024x571.png 1024w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h18_24-300x167.png 300w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h18_24-768x428.png 768w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h18_24.png 1142w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u95a2\u3059\u308b\u307b\u304b\u306e\u81ea\u52d5\u5316\u624b\u9806\u306f\u3001\u95a2\u9023\u8a18\u4e8b\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\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 loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2026\/09\/google-apps-matome-3-300x169.jpg\" 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:\/\/cg-method.com\/google\/google-apps-matome\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30fb\u30c9\u30e9\u30a4\u30d6\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff5c\u95a2\u6570\u3068GAS<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Google\u306e\u64cd\u4f5c\u3092\u300c\u4f55\u3092\u3057\u305f\u3044\u304b\u300d\u304b\u3089\u63a2\u305b\u308b\u30ac\u30a4\u30c9\u3067\u3059\u3002 \u307e\u305a\u6a19\u6e96\u306e\u753b\u9762\u64cd\u4f5c\u3084\u95a2\u6570\u3067\u89e3\u6c7a\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3001\u7e70\u308a\u8fd4\u3059\u51e6\u7406\u306bGAS\u3092\u4f7f\u3044\u307e\u3059\u3002 \u76ee\u7684\u304b\u3089\u624b\u9806\u3092\u9078\u3076 \u3084\u308a\u305f&#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 class=\"wp-block-heading\">\u30b9\u30af\u30ea\u30d7\u30c8\u30b3\u30fc\u30c9\uff08Code.gs\uff09<\/h2>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<a href=\"https:\/\/script.google.com\/home\/projects\/create\" class=\"c-blogLink -external\" data-style=\"text\" target=\"_blank\" rel=\"noopener noreferrer\">\n\t\t\t\t<!-- <i class=\"c-blogLink__icon icon-link\" role=\"presentation\"><\/i> -->\n\t\t\t\t<span class=\"c-blogLink__icon\">\n\t\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-externalLink __svg\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M44 2H30c-1.1 0-2 .9-2 2s.9 2 2 2h9.2L24 21.2c-.8.8-.8 2 0 2.8s2 .8 2.8 0L42 8.8V18c0 1.1.9 2 2 2s2-.9 2-2V4c0-1.1-.9-2-2-2z\" \/><path d=\"M41 27c-1.1 0-2 .9-2 2v10c0 1.1-.9 2-2 2H9c-1.1 0-2-.9-2-2V11c0-1.1.9-2 2-2h10c1.1 0 2-.9 2-2s-.9-2-2-2H9c-3.3 0-6 2.7-6 6v28c0 3.3 2.7 6 6 6h28c3.3 0 6-2.7 6-6V29c0-1.1-.9-2-2-2z\" \/><\/svg>\t\t\t\t<\/span>\n\t\t\t\t<span class=\"c-blogLink__text\">Apps Script \u00a0|\u00a0 Google for Developers<\/span>\n\t\t\t<\/a>\n\t\t<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u300c\u62e1\u5f35\u6a5f\u80fd\u300d\u304b\u3089\u958b\u3044\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\uff08Code.gs\uff09\u3078\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u306e\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ea\u30f3\u30af\u304b\u3089\u72ec\u7acb\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u308b\u3068\u3001\u3053\u306e\u4f8b\u306e\u30e1\u30cb\u30e5\u30fc\u3084\u51fa\u529b\u5148\u3092\u305d\u306e\u307e\u307e\u4f7f\u3048\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d5\u30a9\u30eb\u30c0URL\u306b<code>resourcekey<\/code>\u304c\u4ed8\u3044\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u90e8\u5206\u3082\u542b\u3081\u3066\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u306f\u30ad\u30fc\u4ed8\u304dURL\u3092<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/drive\/drive-app#getFolderByIdAndResourceKey(String,String)\">\u30ad\u30fc\u5bfe\u5fdc\u306e\u53d6\u5f97\u30e1\u30bd\u30c3\u30c9<\/a>\u3078\u6e21\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>function onOpen() {\n  SpreadsheetApp.getUi().createMenu(&#x27;Drive\u4e00\u89a7&#x27;).addItem(&#x27;\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u3092\u51fa\u529b&#x27;, &#x27;showFolderInputModal&#x27;).addToUi();\n}\nfunction showFolderInputModal() {\n  const html = HtmlService.createHtmlOutputFromFile(&#x27;FolderInputForm&#x27;).setWidth(420).setHeight(250);\n  SpreadsheetApp.getUi().showModalDialog(html, &#x27;\u30d5\u30a9\u30eb\u30c0URL\u3092\u5165\u529b&#x27;);\n}\nfunction processFolderUrl(folderUrl) {\n  const match = String(folderUrl).trim().match(\/^https:\\\/\\\/drive\\.google\\.com\\\/drive\\\/(?:u\\\/\\d+\\\/)?folders\\\/([a-zA-Z0-9_-]+)(?:[?#][^\\s]*)?$\/);\n  if (!match) throw new Error(&#x27;drive.google.com\u306e\u30d5\u30a9\u30eb\u30c0URL\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n  const keyMatch = String(folderUrl).trim().split(&#x27;#&#x27;)[0].match(\/[?&amp;]resourcekey=([^&amp;]*)\/);\n  let resourceKey = &#x27;&#x27;;\n  if (keyMatch) {\n    try { resourceKey = decodeURIComponent(keyMatch[1]); }\n    catch (e) { throw new Error(&#x27;resourcekey\u3092\u542b\u3080\u5143\u306eURL\u3092\u30b3\u30d4\u30fc\u3057\u76f4\u3057\u3066\u304f\u3060\u3055\u3044&#x27;); }\n    if (!\/^[a-zA-Z0-9_-]+$\/.test(resourceKey)) throw new Error(&#x27;resourcekey\u306e\u5f62\u5f0f\u304c\u4e0d\u6b63\u3067\u3059&#x27;);\n  }\n  const lock = LockService.getScriptLock();\n  if (!lock.tryLock(10000)) throw new Error(&#x27;\u540c\u3058\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u51e6\u7406\u4e2d\u3067\u3059&#x27;);\n  try {\n    const root = resourceKey\n      ? DriveApp.getFolderByIdAndResourceKey(match[1], resourceKey)\n      : DriveApp.getFolderById(match[1]);\n    const queue = [{folder: root, path: root.getName()}];\n    const seen = new Set(), rows = [];\n    for (let i = 0; i &lt; queue.length; i++) {\n      const {folder, path} = queue[i];\n      if (seen.has(folder.getId())) throw new Error(&#x27;\u91cd\u8907\u30d5\u30a9\u30eb\u30c0ID\u306e\u305f\u3081\u4e2d\u6b62\u3057\u307e\u3057\u305f&#x27;);\n      seen.add(folder.getId());\n      const files = folder.getFiles();\n      while (files.hasNext()) {\n        if (rows.length &gt;= 1000) throw new Error(&#x27;1000\u30d5\u30a1\u30a4\u30eb\u3092\u8d85\u3048\u308b\u305f\u3081\u4e2d\u6b62\u3057\u307e\u3057\u305f&#x27;);\n        const file = files.next();\n        if (file.isTrashed()) continue;\n        const owner = file.getOwner();\n        rows.push([safeCell_(path), safeCell_(file.getName()), file.getDateCreated(),\n          safeCell_(owner ? owner.getName() : &#x27;\u6240\u6709\u8005\u60c5\u5831\u306a\u3057&#x27;), file.getUrl()]);\n      }\n      const children = folder.getFolders();\n      while (children.hasNext()) {\n        const child = children.next();\n        if (child.isTrashed()) continue;\n        if (queue.length &gt;= 100) throw new Error(&#x27;100\u30d5\u30a9\u30eb\u30c0\u3092\u8d85\u3048\u308b\u305f\u3081\u4e2d\u6b62\u3057\u307e\u3057\u305f&#x27;);\n        queue.push({folder: child, path: path + &#x27; &gt; &#x27; + child.getName()});\n      }\n    }\n    \/\/ \u5217\u6319\u304c\u3059\u3079\u3066\u6210\u529f\u3057\u3066\u304b\u3089\u3001\u65b0\u898f\u30b7\u30fc\u30c8\u3078\u51fa\u529b\u3057\u307e\u3059\u3002\n    const ss = SpreadsheetApp.getActiveSpreadsheet();\n    const name = &#x27;\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7_&#x27; + Utilities.getUuid();\n    const sheet = ss.insertSheet(name, 0);\n    if (sheet.getMaxRows() &lt; rows.length + 1) {\n      sheet.insertRowsAfter(sheet.getMaxRows(), rows.length + 1 - sheet.getMaxRows());\n    }\n    sheet.getRange(1, 1, rows.length + 1, 5).setValues([[&#x27;\u30d5\u30a9\u30eb\u30c0&#x27;, &#x27;\u30d5\u30a1\u30a4\u30eb\u540d&#x27;, &#x27;\u4f5c\u6210\u65e5&#x27;, &#x27;\u30aa\u30fc\u30ca\u30fc&#x27;, &#x27;URL&#x27;], ...rows]);\n    sheet.activate();\n    return {name, files: rows.length, folders: seen.size};\n  } finally {\n    try { SpreadsheetApp.flush(); }\n    finally { lock.releaseLock(); }\n  }\n}\nfunction safeCell_(value) {\n  const text = String(value);\n  return \/^[=+@-]\/.test(text) ? &quot;&#x27;&quot; + text : text;\n}<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d9a\u3044\u3066\u3001URL\u5165\u529b\u753b\u9762\u3068\u306a\u308b\u30e2\u30fc\u30c0\u30eb\u7528\u306eHTML\u30b3\u30fc\u30c9\uff08FolderInputForm.html\uff09\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;&lt;head&gt;&lt;base target=&quot;_top&quot;&gt;&lt;style&gt;\nbody {font-family:sans-serif;} input {box-sizing:border-box;width:100%;padding:8px;} button {margin-top:12px;} #status {white-space:pre-wrap;}\n&lt;\/style&gt;&lt;\/head&gt;&lt;body&gt;\n&lt;label for=&quot;folderUrl&quot;&gt;Google Drive\u306e\u30d5\u30a9\u30eb\u30c0URL&lt;\/label&gt;\n&lt;input type=&quot;url&quot; id=&quot;folderUrl&quot; placeholder=&quot;https:\/\/drive.google.com\/drive\/folders\/xxxxx&quot;&gt;\n&lt;button id=&quot;run&quot; onclick=&quot;submitFolder()&quot;&gt;\u5b9f\u884c&lt;\/button&gt;&lt;p id=&quot;status&quot; role=&quot;status&quot;&gt;&lt;\/p&gt;\n&lt;script&gt;\nlet running = false;\nfunction submitFolder() {\n  if (running) return;\n  running = true;\n  const button = document.getElementById(&#x27;run&#x27;);\n  const status = document.getElementById(&#x27;status&#x27;);\n  button.disabled = true; status.textContent = &#x27;\u51e6\u7406\u4e2d\u3067\u3059\u3002\u753b\u9762\u3092\u9589\u3058\u305a\u306b\u304a\u5f85\u3061\u304f\u3060\u3055\u3044\u3002&#x27;;\n  google.script.run.withSuccessHandler(result =&gt; {\n    status.textContent = result.name + &#x27;\u3078&#x27; + result.files + &#x27;\u4ef6\u3092\u51fa\u529b\u3057\u307e\u3057\u305f\u3002\u753b\u9762\u3092\u9589\u3058\u3066\u7d50\u679c\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#x27;;\n    \/\/ \u540c\u3058\u30c0\u30a4\u30a2\u30ed\u30b0\u304b\u3089\u306e\u91cd\u8907\u51fa\u529b\u3092\u9632\u3050\u305f\u3081\u3001\u30dc\u30bf\u30f3\u306f\u7121\u52b9\u306e\u307e\u307e\u3067\u3059\u3002\n  }).withFailureHandler(error =&gt; {\n    status.textContent = &#x27;\u51e6\u7406\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u5b9f\u884c\u30ed\u30b0\u3068\u4f5c\u6210\u6e08\u307f\u30b7\u30fc\u30c8\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#x27; + error.message;\n    running = false; button.disabled = false;\n  }).processFolderUrl(document.getElementById(&#x27;folderUrl&#x27;).value);\n}\n&lt;\/script&gt;&lt;\/body&gt;&lt;\/html&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u89a7\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u540d\u30fb\u6240\u6709\u8005\u540d\u30fbURL\u3092\u8ee2\u8a18\u3057\u307e\u3059\u3002\u5143\u30d5\u30a1\u30a4\u30eb\u306e\u5171\u6709\u8a2d\u5b9a\u306f\u5909\u3048\u307e\u305b\u3093\u304c\u3001\u7d50\u679c\u30b7\u30fc\u30c8\u306e\u95b2\u89a7\u8005\u306b\u306f\u3053\u308c\u3089\u306e\u60c5\u5831\u304c\u898b\u3048\u308b\u305f\u3081\u3001\u51fa\u529b\u5148\u306e\u5171\u6709\u7bc4\u56f2\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u89aa1\u30d5\u30a1\u30a4\u30eb\u30fb\u5b501\u30d5\u30a1\u30a4\u30eb\u30fb\u7a7a\u30d5\u30a9\u30eb\u30c0\u306e\u7df4\u7fd2\u4f8b\u30672\u4ef6\u304c\u51fa\u308b\u304b\u30010\u4ef6\u306e\u5834\u5408\u306b\u898b\u51fa\u3057\u3060\u3051\u306b\u306a\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u6210\u529f\u5f8c\u306e\u540c\u3058\u30c0\u30a4\u30a2\u30ed\u30b0\u3067\u306f\u518d\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u51fa\u529b\u7d50\u679c\u306e\u30a4\u30e1\u30fc\u30b8<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306f\u67b6\u7a7a\u306e\u51fa\u529b\u4f8b\u3067\u3059\u3002\u5b9f\u6e2c\u7d50\u679c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4f5c\u6210\u65e5\u306f\u30b7\u30fc\u30c8\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3068\u8868\u793a\u5f62\u5f0f\u306b\u3082\u4f9d\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u30d5\u30a9\u30eb\u30c0<\/th><th>\u30d5\u30a1\u30a4\u30eb\u540d<\/th><th>\u4f5c\u6210\u65e5<\/th><th>\u30aa\u30fc\u30ca\u30fc\u540d<\/th><th>\u30d5\u30a1\u30a4\u30ebURL<\/th><\/tr><\/thead><tbody><tr><td>\u30e1\u30a4\u30f3\u30d5\u30a9\u30eb\u30c0<\/td><td>\u4f01\u753b\u66f8.docx<\/td><td>2024\/12\/01 10:32<\/td><td>\u9234\u6728 \u592a\u90ce<\/td><td><a class=\"\" href=\"https:\/\/drive.google.com\/\">https:\/\/drive.google.com\/<\/a>&#8230;<\/td><\/tr><tr><td>\u30e1\u30a4\u30f3 &gt; \u5b501<\/td><td>\u30c7\u30b6\u30a4\u30f3\u6848.pptx<\/td><td>2024\/12\/01 11:05<\/td><td>\u9234\u6728 \u592a\u90ce<\/td><td><a class=\"\" href=\"https:\/\/drive.google.com\/\">https:\/\/drive.google.com\/<\/a>&#8230;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"510\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_42.png\" alt=\"\u30d5\u30a9\u30eb\u30c0\u540d\u3084\u30d5\u30a1\u30a4\u30eb\u540d\u306a\u3069\u306e\u53d6\u5f97\u7d50\u679c\u304c\u51fa\u529b\u3055\u308c\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u8868\u793a\u753b\u9762\u3002\" class=\"wp-image-305\" srcset=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_42.png 780w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_42-300x196.png 300w, https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/2025-05-26_14h13_42-768x502.png 768w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u6ce8\u610f\u70b9<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u306b\u5bfe\u3059\u308b\u95b2\u89a7\u6a29\u9650\u304c\u306a\u3044\u5834\u5408\u3001\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002<\/li>\n\n\n\n<li>\u7d50\u679c\u306f\u300c\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7_\u300d\u3068UUID\u306e\u540d\u524d\u3067\u65b0\u898f\u4f5c\u6210\u3057\u307e\u3059\u3002\u30d5\u30a9\u30eb\u30c0\u540d\u306e\u7981\u6b62\u6587\u5b57\u3084\u540c\u3058\u5206\u306e\u5b9f\u884c\u306b\u3088\u308b\u540d\u524d\u885d\u7a81\u3092\u907f\u3051\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u89aa\u3092\u542b\u3081100\u30d5\u30a9\u30eb\u30c0\u30fb1000\u30d5\u30a1\u30a4\u30eb\u3092\u8d85\u3048\u308b\u3068\u51fa\u529b\u524d\u306b\u505c\u6b62\u3057\u307e\u3059\u3002\u4e0a\u9650\u5185\u3067\u3082\u5b9f\u884c\u6642\u9593\u30fb\u6a29\u9650\u30fb\u30d6\u30c3\u30af\u306e\u5bb9\u91cf\u3067\u5931\u6557\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u9014\u4e2d\u518d\u958b\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u95a2\u9023\u30b3\u30fc\u30c9\u306fGitHub\u306e<a href=\"https:\/\/github.com\/MOTOKI-LLC\/cg-method-code\/tree\/main\/google\/google-drive-folder-listing-gas\">MOTOKI-LLC\/cg-method-code<\/a>\u306b\u3082\u3042\u308a\u307e\u3059\u3002\u672c\u6587\u306e\u4fee\u6b63\u7248\u3068\u540c\u3058\u7248\u3068\u306f\u9650\u3089\u306a\u3044\u305f\u3081\u3001\u5dee\u5206\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<!-- cgm-topic:start -->\n\n\n<p class=\"wp-block-paragraph\">Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u3092\u6271\u3046\u8a18\u4e8b\u306f\u3001\u307b\u304b\u306b\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\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 loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/google-drive-folder-file-count-gas-300x169.jpg\" 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:\/\/cg-method.com\/google\/google-drive-folder-file-count-gas\/\">Google\u30c9\u30e9\u30a4\u30d6\u2502\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u96c6\u8a08\u3059\u308b\u65b9\u6cd5\u2502GAS<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u5404\u30d5\u30a9\u30eb\u30c0\u306e\u76f4\u4e0b\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u96c6\u8a08\u3057\u307e\u3059\u3002 \u89aa\u306e\u884c\u306f\u5b50\u306e\u4ef6\u6570\u3092\u5408\u7b97\u305b\u305a\u3001\u5168\u8d70\u67fb\u306e\u5408\u8a08\u306f\u5b9f\u884c\u30ed\u30b0\u306b\u5206\u3051\u3066\u8868\u793a\u3057\u307e\u3059\u3002 \u30d5\u30a1\u30a4\u30eb\u4ef6\u6570\u306f\u4f7f\u7528\u5bb9\u91cf\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 &#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<div class=\"swell-block-postLink\">\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 loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/google-drive-delete-old-version-300x169.jpg\" 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:\/\/cg-method.com\/google\/google-drive-delete-old-version\/\">Google\u30c9\u30e9\u30a4\u30d6\u2502\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u7248\u30c7\u30fc\u30bf\u3092\u624b\u52d5\u3067\u524a\u9664\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Google\u30c9\u30e9\u30a4\u30d6\u306b\u4fdd\u5b58\u3057\u305fPDF\u3084\u753b\u50cf\u306a\u3069\u306f\u3001\u300c\u7248\u3092\u7ba1\u7406\u300d\u304b\u3089\u65b0\u3057\u3044\u7248\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u306e\u5c65\u6b74\u3068\u3057\u3066\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002 Google\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30fb\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc&#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<div class=\"swell-block-postLink\">\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 loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/drive-create-folder-tomorrow-300x169.jpg\" 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:\/\/cg-method.com\/google\/drive-create-folder-tomorrow\/\">Google\u30c9\u30e9\u30a4\u30d6\u2502\u660e\u65e5\u306e\u65e5\u4ed8\u30d5\u30a9\u30eb\u30c0\u3092\u81ea\u52d5\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u306f\u3058\u3081\u306b\u3001\u30b3\u30fc\u30c9\u5185\u306e\u30d5\u30a9\u30eb\u30c0ID\u3068\u540d\u524d\u4e00\u89a7\u3092\u3054\u81ea\u8eab\u306e\u3082\u306e\u306b\u5909\u66f4\u3057\u3001\u4f5c\u6210\u6a29\u9650\u306e\u3042\u308b\u30c6\u30b9\u30c8\u7528\u30d5\u30a9\u30eb\u30c0\u3067\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u65e5\u4ed8\u3092\u65e5\u672c\u6642\u9593\u3067\u6271\u3046\u305f\u3081\u3001Apps Script\u306e\u30d7\u30ed&#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<div class=\"swell-block-postLink\">\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 loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/google-drive-gas-get-urls-300x169.jpg\" 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:\/\/cg-method.com\/google\/gas-get-drive-file-urls\/\">Google\u30c9\u30e9\u30a4\u30d6\u2502\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30ebURL\u3092\u4e00\u62ec\u53d6\u5f97\u3057\u3066\u51fa\u529b\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u6307\u5b9a\u3057\u305fDrive\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u30fb\u95b2\u89a7URL\u30fb\u30d5\u30a1\u30a4\u30ebID\u3092\u4e00\u89a7\u306b\u3057\u307e\u3059\u3002 \u8d70\u67fb\u304c\u7d42\u308f\u3063\u3066\u304b\u3089\u65b0\u3057\u3044\u7d50\u679c\u30b7\u30fc\u30c8\u3092\u4f5c\u308b\u305f\u3081\u3001\u65e2\u5b58\u306e\u4e00\u89a7\u3078\u8ffd\u8a18\u30fb\u4e0a\u66f8\u304d\u3057\u307e\u305b\u3093\u3002 2&#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<!-- cgm-topic:end -->\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GAS\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u624b\u4f5c\u696d\u3067\u884c\u3063\u3066\u3044\u305fGoogle\u30c9\u30e9\u30a4\u30d6\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u78ba\u8a8d\u3084\u68da\u5378\u3057\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306e\u30ea\u30f3\u30af\u5148\u306f\u305f\u3069\u308a\u307e\u305b\u3093\u3002\u7a7a\u30d5\u30a9\u30eb\u30c0\u306f\u30d5\u30a1\u30a4\u30eb\u884c\u3092\u4f5c\u308a\u307e\u305b\u3093\u3002\u5143\u30c7\u30fc\u30bf\u306f\u524a\u9664\u30fb\u5909\u66f4\u305b\u305a\u3001\u7d50\u679c\u3060\u3051\u3092\u65b0\u898f\u30b7\u30fc\u30c8\u3078\u66f8\u304d\u307e\u3059\u3002\u66f8\u8fbc\u6642\u306b\u5931\u6557\u3057\u305f\u5834\u5408\u306f\u7a7a\u307e\u305f\u306f\u9014\u4e2d\u306e\u30b7\u30fc\u30c8\u304c\u6b8b\u308b\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u5b8c\u6210\u3057\u305f\u4e00\u89a7\u3068\u3057\u3066\u4f7f\u308f\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2026\u5e7410\u670828\u65e5\u306f\u3001\u30ad\u30fc\u4ed8\u304dURL\u306e\u5206\u5c90\u3068\u51fa\u529b\u78ba\u5b9a\u30fb\u30ed\u30c3\u30af\u89e3\u9664\u3092\u30ed\u30fc\u30ab\u30eb\u306e\u6a21\u64ec\u8a66\u9a13\u3067\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google Drive\u3078\u306e\u5b9f\u30a2\u30af\u30bb\u30b9\u3084\u8a8d\u53ef\u753b\u9762\u3001\u51fa\u529b\u30b7\u30fc\u30c8\u306e\u8868\u793a\u306f\u672a\u691c\u8a3c\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c11\u6570\u306e\u7df4\u7fd2\u30c7\u30fc\u30bf\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5143\u306b\u623b\u3059\u5834\u5408\u306f\u3001\u8ffd\u52a0\u3057\u305f\u7d50\u679c\u30b7\u30fc\u30c8\u306e\u540d\u524d\u3068\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u306b\u3064\u3044\u3066\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u3053\u306e\u30c4\u30fc\u30eb\u306f\u3001\u4f55\u3092\u4e00\u89a7\u306b\u3057\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d5\u30a9\u30eb\u30c0\u306eURL\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u3092\u542b\u3080\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306e\u60c5\u5831\u3092\u3001\u65b0\u898f\u30b7\u30fc\u30c8\u306b\u4e00\u89a7\u51fa\u529b\u3057\u307e\u3059\u3002\u51fa\u529b\u9805\u76ee\u306f\u3001\u30d5\u30a9\u30eb\u30c0\u540d\u30fb\u30d5\u30a1\u30a4\u30eb\u540d\u30fb\u4f5c\u6210\u65e5\u30fb\u30aa\u30fc\u30ca\u30fc\u30fb\u30d5\u30a1\u30a4\u30ebURL\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u3069\u3046\u3084\u3063\u3066\u5b9f\u884c\u3057\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u8ffd\u52a0\u3055\u308c\u308b\u30ab\u30b9\u30bf\u30e0\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u5b9f\u884c\u3057\u307e\u3059\u3002\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u306bGoogle\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a9\u30eb\u30c0URL\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u65b0\u898f\u30b7\u30fc\u30c8\u306b\u4e00\u89a7\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u4f55\u3068\u4f55\u3092\u4f5c\u6210\u3057\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Apps Script\u306e\u30a8\u30c7\u30a3\u30bf\u3067\u3001Code.gs(\u30b9\u30af\u30ea\u30d7\u30c8)\u3068\u3001HTML\u30d5\u30a1\u30a4\u30eb\u306eFolderInputForm.html(URL\u5165\u529b\u753b\u9762)\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4fdd\u5b58\u3057\u305f\u3042\u3068\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3059\u308b\u3068\u3001\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u306b\u5c02\u7528\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u521d\u56de\u306e\u5b9f\u884c\u6642\u306b\u3001\u6a29\u9650\u306e\u78ba\u8a8d\u304c\u51fa\u308b\u306e\u306f\u306a\u305c\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Google\u30a2\u30ab\u30a6\u30f3\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u3001\u627f\u8a8d\u3059\u308b\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u627f\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d5\u30a9\u30eb\u30c0\u3092\u6307\u5b9a\u3057\u3066\u3082\u3001\u4e00\u89a7\u304c\u51fa\u307e\u305b\u3093\u3002<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u306b\u5bfe\u3059\u308b\u95b2\u89a7\u6a29\u9650\u304c\u306a\u3044\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d5\u30a9\u30eb\u30c0\u306eURL\u3068\u3001\u81ea\u5206\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6a29\u9650\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ea\u30f3\u30af\u5171\u6709\u306eURL\u306bresourcekey\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u7701\u7565\u305b\u305a\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ad\u30fc\u3092\u6307\u5b9a\u3057\u3066\u3082\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u30d5\u30a9\u30eb\u30c0\u306e\u6a29\u9650\u3092\u53d6\u5f97\u3067\u304d\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3067\u304d\u306a\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6a29\u9650\u3084\u30d6\u30c3\u30af\u306e\u5bb9\u91cf\u306a\u3069\u3067\u4f5c\u6210\u30fb\u66f8\u8fbc\u307f\u306b\u5931\u6557\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u5217\u6319\u304c\u6210\u529f\u3057\u3066\u304b\u3089UUID\u4ed8\u304d\u306e\u65b0\u898f\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u304c\u3001\u66f8\u8fbc\u307f\u5931\u6557\u6642\u306f\u7a7a\u3084\u9014\u4e2d\u306e\u7d50\u679c\u304c\u6b8b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5171\u6709\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u8c61\u306b\u3067\u304d\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u5171\u6709\u30c9\u30e9\u30a4\u30d6\u3092\u542b\u3080\u7db2\u7f85\u7684\u306a\u53d6\u5f97\u306f\u672a\u78ba\u8a8d\u3067\u3059\u3002\u5171\u6709\u30c9\u30e9\u30a4\u30d6\u3092\u6271\u3046\u5834\u5408\u306fAdvanced Drive Service\u3084Drive API\u3067\u306e\u5b9f\u88c5\u3092\u691c\u8a0e\u3057\u3001\u5bfe\u5fdc\u7bc4\u56f2\u30fb\u6a29\u9650\u3092\u5225\u9014\u691c\u8a3c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u306e\u6700\u65b0\u306e\u52d5\u4f5c\u306f\u3001\u3069\u3046\u78ba\u8a8d\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Google\u5b9f\u6a5f\u3067\u306e\u518d\u691c\u8a3c\u306f\u672a\u5b9f\u65bd\u3067\u3059\u3002<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/drive\/drive-app\">DriveApp\u306e\u4ed5\u69d8\u3068\u5171\u6709\u30c9\u30e9\u30a4\u30d6\u306e\u6ce8\u610f<\/a>\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/drive\/folder\">Folder\u306e\u5217\u6319\u4ed5\u69d8<\/a>\u3092\u78ba\u8a8d\u3057\u3001\u5c0f\u3055\u306a\u7df4\u7fd2\u30d5\u30a9\u30eb\u30c0\u3067\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Google\u30c9\u30e9\u30a4\u30d6\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u62ec\u3067\u4e00\u89a7\u5316\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u3053\u306e\u4f8b\u306f\u30de\u30a4\u30c9\u30e9\u30a4\u30d6\u306e\u5c0f\u3055\u306a\u30d5\u30a9\u30eb\u30c0\u3092\u5bfe\u8c61\u306b\u3001\u5b9f\u884c\u8005\u304c\u95b2\u89a7\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u5217\u6319\u3057\u307e\u3059\u3002\u5171\u6709\u30c9\u30e9\u30a4\u30d6\u3092\u542b\u3080\u7d44\u7e54\u5168\u4f53\u306e\u68da\u5378\u3057\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 \u624b\u4f5c\u696d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":302,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a9\u30eb\u30c0\u4e00\u89a7\u3092GAS\u3067\u51fa\u3059","ssp_meta_description":"Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3092\u3001GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u51fa\u3059\u65b9\u6cd5\u3067\u3059\u3002\u968e\u5c64\u3092\u305f\u3069\u3063\u3066\u4e00\u89a7\u306b\u3067\u304d\u308b\u306e\u3067\u3001\u6574\u7406\u524d\u306e\u68da\u5378\u3057\u306b\u4f7f\u3048\u307e\u3059\u3002"},"categories":[19],"tags":[18],"class_list":["post-301","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-drive","tag-gas"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/comments?post=301"}],"version-history":[{"count":14,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/301\/revisions"}],"predecessor-version":[{"id":23851,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/301\/revisions\/23851"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/media\/302"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/media?parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/categories?post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/tags?post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}