{"id":3122,"date":"2022-06-17T11:38:02","date_gmt":"2022-06-17T02:38:02","guid":{"rendered":"https:\/\/for-dummies.net\/gas-noobs\/?p=3122"},"modified":"2022-06-17T11:41:56","modified_gmt":"2022-06-17T02:41:56","slug":"get-info-related-to-folders-and-files-by-apps-script","status":"publish","type":"post","link":"https:\/\/for-dummies.net\/gas-noobs\/get-info-related-to-folders-and-files-by-apps-script\/","title":{"rendered":"GAS\u3067\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a9\u30eb\u30c0\/\u30d5\u30a1\u30a4\u30eb\u306e\u95a2\u9023\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3066\u307f\u308b"},"content":{"rendered":"\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001Google\u30c9\u30e9\u30a4\u30d6\u4e0a\u306b\u4fdd\u5b58\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u7d10\u3065\u304f\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3066\u304f\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u305f\u3042\u3068\u306b\u3001\u8272\u3005\u306a\u51e6\u7406\u306b\u3064\u306a\u3052\u308b\u305f\u3081\u306b\u306f\u3001\u3053\u306e\u8a18\u4e8b\u3067\u3054\u7d39\u4ecb\u3059\u308b\u65b9\u6cd5\u304c\u591a\u5206\u306b\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u7686\u3055\u3093\u306b\u8aad\u3093\u3067\u307b\u3057\u3044\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u5225\u8a18\u4e8b\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4eca\u56de\u306f\u53d6\u5f97\u3057\u305f\u5f8c\u306b\u3069\u3093\u306a\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u308b\u306e\u304b\u3068\u3044\u3046\u70b9\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u3044\u304d\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:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/04\/DriveApp_getFiles_and_getFolders.png?fit=300%2C169&#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-get-files-and-folders-in-drives-by-gas\/\">Google Apps Script\u3067\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u3066\u307f\u308b<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u4eca\u56de\u306e\u8a18\u4e8b\u306f\u3001Google Apps Script\u3092\u4f7f\u3063\u3066Google\u30c9\u30e9\u30a4\u30d6\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002 GAS\u3067\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306f\u305d\u308c\u305e\u308c\u3044\u304f\u3064\u304b&#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<!--more-->\n\n\n\n<h2>\u672c\u8a18\u4e8b\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<ul class=\"is-style-check_list -list-under-dashed\"><li><span class=\"swl-marker mark_orange\"><strong>\u53d6\u5f97\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u60c5\u5831\u3092\u53d6\u5f97\u3057\u305f\u3044\u65b9<\/strong><\/span><\/li><li><span class=\"swl-marker mark_orange\"><strong>\u53d6\u5f97\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u306e\u95a2\u9023\u60c5\u5831\u3092\u305d\u306e\u4ed6\u306e\u51e6\u7406\u306b\u6d41\u7528\u3057\u305f\u3044\u65b9<\/strong><\/span><\/li><li><span class=\"swl-marker mark_orange\"><strong>\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u3092\u53d6\u5f97\u3057\u305f\u5f8c\u306b\u4f55\u304c\u3067\u304d\u308b\u304b\u77e5\u308a\u305f\u3044\u65b9<\/strong><\/span><\/li><\/ul>\n<\/div><\/div>\n\n\n\n<h2>\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u95a2\u9023\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<div class=\"wp-block-group has-border -border01\"><div class=\"wp-block-group__inner-container\">\n<p>\u672c\u30da\u30fc\u30b8\u3067\u306f\u3001\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u95a2\u9023\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"is-style-num_circle -list-under-dashed\"><li><a href=\"#getAs(contentType)\" data-type=\"internal\" data-id=\"#getAs(contentType)\">getAs<\/a>\uff08\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u3092\u6307\u5b9a\u3057\u3066Blob\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getBlob()\" data-type=\"internal\" data-id=\"#getBlob()\">getBlob<\/a>\uff08Blob\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getDateCreated()\" data-type=\"internal\" data-id=\"#getDateCreated()\">getDateCreated<\/a>\uff08\u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u65e5\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getDescription()\" data-type=\"internal\" data-id=\"#getDescription()\">getDescription<\/a>\uff08\u30d5\u30a1\u30a4\u30eb\u306e\u8a73\u7d30\u8aac\u660e\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getDownloadUrl()\" data-type=\"internal\" data-id=\"#getDownloadUrl()\">getDownloadUrl<\/a>\uff08\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9URL\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getId()\" data-type=\"internal\" data-id=\"#getId()\">getId<\/a>\uff08\u30d5\u30a9\u30eb\u30c0ID \/ \u30d5\u30a1\u30a4\u30ebID\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getLastUpdated()\" data-type=\"internal\" data-id=\"#getLastUpdated()\">getLastUpdated<\/a>\uff08\u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u306e\u6700\u7d42\u66f4\u65b0\u65e5\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getName()\" data-type=\"internal\" data-id=\"#getName()\">getName<\/a>\uff08\u30d5\u30a9\u30eb\u30c0\u540d \/ \u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getParents()\" data-type=\"internal\" data-id=\"#getParents()\">getParents<\/a>\uff08\u89aa\u30d5\u30a9\u30eb\u30c0\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getResourceKey()\" data-type=\"internal\" data-id=\"#getResourceKey()\">getResourceKey<\/a>\uff08URL\u3092\u77e5\u3063\u3066\u3044\u308b\u4eba\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getSecurityUpdateEligible()\" data-type=\"internal\" data-id=\"#getSecurityUpdateEligible()\">getSecurityUpdateEligible<\/a>\uff08\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u304b\u53d6\u5f97\uff09<\/li><li><a href=\"#getSecurityUpdateEnabled()\" data-type=\"internal\" data-id=\"#getSecurityUpdateEnabled()\">getSecurityUpdateEnabled<\/a>\uff08\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u9069\u7528\u3055\u308c\u3001URL\u30a2\u30af\u30bb\u30b9\u6642\u306b\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u304c\u5fc5\u8981\u304b\u53d6\u5f97\uff09<\/li><li><a href=\"#getSize()\" data-type=\"internal\" data-id=\"#getSize()\">getSize<\/a>\uff08\u30d5\u30a1\u30a4\u30eb\u5bb9\u91cf\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getTargetId()\" data-type=\"internal\" data-id=\"#getTargetId()\">getTargetId<\/a>\uff08\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u5143\u30d5\u30a1\u30a4\u30eb\u306eID\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getTargetMimeType()\" data-type=\"internal\" data-id=\"#getTargetMimeType()\">getTargetMimeType<\/a>\uff08\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u5143\u30d5\u30a1\u30a4\u30eb\u306eMimeType\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getTargetResourceKey()\" data-type=\"internal\" data-id=\"#getTargetResourceKey()\">getTargetResourceKey<\/a>\uff08\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u5143\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getThumbnail()\" data-type=\"internal\" data-id=\"#getThumbnail()\">getThumbnail<\/a>\uff08\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u3092\u53d6\u5f97\uff09<\/li><li><a href=\"#getUrl()\" data-type=\"internal\" data-id=\"#getUrl()\">getUrl<\/a>\uff08\u30d5\u30a1\u30a4\u30eb\u306eURL\u3092\u53d6\u5f97\uff09<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<p>Blob\u30c7\u30fc\u30bf\u3068\u8a00\u3046\u805e\u304d\u6163\u308c\u306a\u3044\u7528\u8a9e\u3082\u51fa\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u7528\u8a9e\u306e\u8aac\u660e\u3082\u5165\u308c\u3066\u304b\u3089\u672c\u984c\u306b\u5165\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2>Blob\u30c7\u30fc\u30bf\u3063\u3066\u306a\u306b\uff1f<\/h2>\n\n\n\n<p>\u3068\u8a00\u3063\u3066\u3082\u3001\u7528\u8a9e\u306b\u3064\u3044\u3066\u306f\u79c1\u3082\u6b63\u78ba\u306b\u306f\u7406\u89e3\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3088\u308a\u8a73\u3057\u3044\u30b5\u30a4\u30c8\u306e\u8aac\u660e\u3092\u5f15\u7528\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>BLOB\u3068\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u5b9a\u7fa9\u306a\u3069\u3067\u7528\u3044\u3089\u308c\u308b\u30c7\u30fc\u30bf\u578b\u306e\u4e00\u3064\u3067\u3001\u30c6\u30ad\u30b9\u30c8\uff08\u6587\u5b57\u5217\uff09\u3084\u6574\u6570\u306e\u3088\u3046\u306b\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u578b\u3068\u3057\u3066\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u306a\u3044\u4efb\u610f\u306e\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3002<\/p><cite>IT\u7528\u8a9e\u8f9e\u5178 e-Words\uff08https:\/\/e-words.jp\/w\/BLOB.html\uff09<\/cite><\/blockquote>\n\n\n\n<p>\u79c1\u306e\u8a8d\u8b58\u3068\u3057\u3066\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30c7\u30fc\u30bf\u3068\u3044\u3046\u8a8d\u8b58\u3067\u3059\u3002\u53b3\u5bc6\u306b\u306f\u3082\u3063\u3068\u6df1\u3044\u306e\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u8a73\u3057\u3044\u65b9\u304c\u3044\u308c\u3070\u30b3\u30e1\u30f3\u30c8\u306b\u3066\u88dc\u8db3\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001Google\u30c9\u30e9\u30a4\u30d6\u4e0a\u306ePDF\u306eBlob\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u3001Gmail\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u6dfb\u4ed8\u3057\u3066\u9001\u4fe1\u3059\u308b\u306a\u3093\u3066\u8a00\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"index_id0\">\u8a18\u4e8b\u3067\u7d39\u4ecb\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u4e00\u89a7<\/h2>\n\n\n\n<div class=\"wp-block-group has-border -border01\"><div class=\"wp-block-group__inner-container\">\n<p>\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u5f8c\u306b\u53d6\u5f97\u3067\u304d\u308b\u30b3\u30fc\u30c9\u3092\u3054\u7d39\u4ecb<\/p>\n\n\n\n<ol class=\"is-style-num_circle -list-under-dashed\"><li><a href=\"#getAs(contentType)\" data-type=\"internal\" data-id=\"#getAs(contentType)\">getAs(contentType)<\/a> &#8211; \u30d5\u30a1\u30a4\u30eb\u306b\u306e\u307f\u5229\u7528\u53ef<\/li><li><a href=\"#getBlob()\" data-type=\"internal\" data-id=\"#getBlob()\">getBlob()<\/a> &#8211; \u30d5\u30a1\u30a4\u30eb\u306b\u306e\u307f\u5229\u7528\u53ef<\/li><li><a href=\"#getDateCreated()\" data-type=\"internal\" data-id=\"#getDateCreated()\">getDateCreated()<\/a> &#8211; \u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u4e21\u65b9\u306b\u5229\u7528\u53ef<\/li><li><a href=\"#getDescription()\" data-type=\"internal\" data-id=\"#getDescription()\">getDescription()<\/a> &#8211; \u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u4e21\u65b9\u306b\u5229\u7528\u53ef<\/li><li><a href=\"#getDownloadUrl()\" data-type=\"internal\" data-id=\"#getDownloadUrl()\">getDownloadUrl()<\/a> &#8211; \u30d5\u30a1\u30a4\u30eb\u306b\u306e\u307f\u5229\u7528\u53ef<\/li><li><a href=\"#getId()\" data-type=\"internal\" data-id=\"#getId()\">getId()<\/a> &#8211; \u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u4e21\u65b9\u306b\u5229\u7528\u53ef<\/li><li><a href=\"#getLastUpdated()\" data-type=\"internal\" data-id=\"#getLastUpdated()\">getLastUpdated()<\/a> &#8211; \u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u4e21\u65b9\u306b\u5229\u7528\u53ef<\/li><li><a href=\"#getMimeType()\" data-type=\"internal\" data-id=\"#getMimeType()\">getMimeType()<\/a> &#8211; \u30d5\u30a1\u30a4\u30eb\u306b\u306e\u307f\u5229\u7528\u53ef<\/li><li><a href=\"#getName()\" data-type=\"internal\" data-id=\"#getName()\">getName()<\/a> &#8211; \u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u4e21\u65b9\u306b\u5229\u7528\u53ef<\/li><li><a href=\"#getParents()\" data-type=\"internal\" data-id=\"#getParents()\">getParents()<\/a> &#8211; \u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u4e21\u65b9\u306b\u5229\u7528\u53ef<\/li><li><a href=\"#getResourceKey()\" data-type=\"internal\" data-id=\"#getResourceKey()\">getResourceKey()<\/a> &#8211; \u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u4e21\u65b9\u306b\u5229\u7528\u53ef<\/li><li><a href=\"#getSecurityUpdateEligible()\" data-type=\"internal\" data-id=\"#getSecurityUpdateEligible()\">getSecurityUpdateEligible()<\/a> &#8211; \u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u4e21\u65b9\u306b\u5229\u7528\u53ef<\/li><li><a href=\"#getSecurityUpdateEnabled()\" data-type=\"internal\" data-id=\"#getSecurityUpdateEnabled()\">getSecurityUpdateEnabled()<\/a> &#8211; \u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u4e21\u65b9\u306b\u5229\u7528\u53ef<\/li><li><a href=\"#getSize()\" data-type=\"internal\" data-id=\"#getSize()\">getSize()<\/a> &#8211; \u30d5\u30a1\u30a4\u30eb\u306b\u306e\u307f\u5229\u7528\u53ef<\/li><li><a href=\"#getTargetId()\" data-type=\"internal\" data-id=\"#getTargetId()\">getTargetId()<\/a> &#8211; \u30d5\u30a1\u30a4\u30eb\u306b\u306e\u307f\u5229\u7528\u53ef<\/li><li><a href=\"#getTargetMimeType()\" data-type=\"internal\" data-id=\"#getTargetMimeType()\">getTargetMimeType()<\/a> &#8211; \u30d5\u30a1\u30a4\u30eb\u306b\u306e\u307f\u5229\u7528\u53ef<\/li><li><a href=\"#getTargetResourceKey()\" data-type=\"internal\" data-id=\"#getTargetResourceKey()\">getTargetResourceKey()<\/a> &#8211; \u30d5\u30a1\u30a4\u30eb\u306b\u306e\u307f\u5229\u7528\u53ef<\/li><li><a href=\"#getThumbnail()\" data-type=\"internal\" data-id=\"#getThumbnail()\">getThumbnail()<\/a> &#8211; \u30d5\u30a1\u30a4\u30eb\u306b\u306e\u307f\u5229\u7528\u53ef<\/li><li><a href=\"#getUrl()\" data-type=\"internal\" data-id=\"#getUrl()\">getUrl()<\/a> &#8211; \u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u4e21\u65b9\u306b\u5229\u7528\u53ef<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<p>\u7d50\u69cb\u8272\u3005\u306a\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3088\u306d\u3002<br>\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u4e0b\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u30dc\u30bf\u30f3\u3088\u308a\u78ba\u8a8d\u30fb\u5b9f\u884c\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<div class=\"swell-block-button is-style-btn_normal\"><a href=\"https:\/\/script.google.com\/d\/1cEKL7sOgakrnn_CEioXerSJEgSHyToVPAZzJOe2eSpiF-hdaXbD85GUS\/edit?usp=sharing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"swell-block-button__link\" data-has-icon=\"1\"><svg class=\"swl-svg-lightbulb __icon\" viewbox=\"0 0 40 40\" role=\"img\" focusable=\"false\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"1em\" height=\"1em\" fill=\"currentColor\"><path d=\"M14 34v2.7c0 0.6 0.5 1 1 1h0.4c0.3 0.7 1 1.2 1.9 1.2h5.5c0.8 0 1.5-0.5 1.9-1.2h0.4c0.6 0 1-0.5 1-1v-2.7h-12.1z\"><\/path><path d=\"M19.4 0.9c-7.5 0.3-13.6 6.6-13.7 14.1-0.1 5.6 3 10.5 7.7 12.9 0.4 0.2 0.7 0.6 0.7 1.1v3h11.9v-3c0-0.5 0.3-0.9 0.7-1.1 4.6-2.4 7.7-7.2 7.7-12.7-0.1-8.1-6.8-14.6-15-14.3zM24.7 24.3c-1.4 0.7-2.4 2-2.7 3.6h-4c-0.3-1.5-1.3-2.8-2.7-3.6-3.5-1.8-5.6-5.4-5.5-9.2 0.1-5.3 4.5-9.8 9.8-10 2.8-0.1 5.5 0.9 7.5 2.8s3.1 4.6 3.1 7.4c0 3.7-2.1 7.2-5.5 9z\"><\/path><\/svg><span>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/span><\/a><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<div class=\"swell-block-button is-style-btn_normal\"><a href=\"https:\/\/drive.google.com\/drive\/folders\/1iWnUXfI8vl_6XHuKhCvH9abMQM7pVlDE\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"swell-block-button__link\" data-has-icon=\"1\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"folder\" class=\"svg-inline--fa fa-folder __icon\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 512 512\" width=\"1em\" height=\"1em\"><path fill=\"currentColor\" d=\"M447.1 96h-172.1L226.7 50.75C214.7 38.74 198.5 32 181.5 32H63.1c-35.35 0-64 28.66-64 64v320c0 35.34 28.65 64 64 64h384c35.35 0 64-28.66 64-64V160C511.1 124.7 483.3 96 447.1 96zM463.1 416c0 8.824-7.178 16-16 16h-384c-8.822 0-16-7.176-16-16V96c0-8.824 7.178-16 16-16h117.5c4.273 0 8.293 1.664 11.31 4.688L255.1 144h192c8.822 0 16 7.176 16 16V416z\"><\/path><\/svg><span>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u53c2\u7167\u3057\u3066\u3044\u308b\u30d5\u30a9\u30eb\u30c0<\/span><\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<p>\u521d\u56de\u5b9f\u884c\u6642\u306b\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u8a31\u53ef\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u306e\u3067\u3001\u4e0b\u8a18\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u8a31\u53ef\u3092\u9032\u3081\u3066\u307f\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>\n\n\n<p class=\"is-style-icon_announce\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c\u958b\u3051\u306a\u3044\u5834\u5408\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30e2\u30fc\u30c9\u3067\u958b\u3044\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br><span class=\"swl-fz u-fz-xs\">\u203b \u4f01\u696d\u306e\u30b3\u30fc\u30dd\u30ec\u30fc\u30c8\u30dd\u30ea\u30b7\u30fc\u306b\u3088\u3063\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u3068\u958b\u3051\u306a\u3044\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<p>\u4e0a\u8a18\u306b\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3082\u306e\u3067\u3001\u3059\u3067\u306b\u500b\u5225\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3042\u308b\u3082\u306e\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u4e0b\u8a18\u306e\u95a2\u9023\u8a18\u4e8b\u3082\u53c2\u8003\u306b\u3054\u89a7\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\/2022\/06\/how-to-get-access-settings-from-folders-and-files.png?fit=300%2C169&#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-get-access-settings-by-gas\/\">\u3010\u30b3\u30d4\u30da\u3067\u4f7f\u3048\u308b\u3011Google\u30c9\u30e9\u30a4\u30d6\u306e\u5171\u6709\u8a2d\u5b9a\u3092GAS\u3067\u53d6\u5f97\u3059\u308b<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001GAS\u3067\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u306e\u5171\u6709\u8a2d\u5b9a\uff08\u30a2\u30af\u30bb\u30b9\u6a29\u9650\uff09\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u30d5\u30a1\u30a4\u30eb\u304c\u591a\u304f\u306a\u3063\u3066\u304f\u308b\u3068\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u8ab0\u306b\u5171\u6709\u3055\u308c\u3066\u3044\u308b\u306e&#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<p>\u4eca\u56de\u306f\u6319\u52d5\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u5f62\u5f0f\u306e\u52d5\u4f5c\u78ba\u8a8d\u30b5\u30a4\u30c8\u3082\u7528\u610f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"swell-block-button is-style-btn_normal\" data-id=\"37092fa8\"><a href=\"https:\/\/script.google.com\/macros\/s\/AKfycbybN1w52CmkA3pOJN35nTZ9AUVcVP0KF4-HrtU-62Gavd8yG5UDphkm-QwBYxAYWVC9LA\/exec\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"swell-block-button__link\" data-has-icon=\"1\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"earth-asia\" class=\"svg-inline--fa fa-earth-asia __icon\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 512 512\" width=\"1em\" height=\"1em\"><path fill=\"currentColor\" d=\"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM51.68 295.1L83.41 301.5C91.27 303.1 99.41 300.6 105.1 294.9L120.5 279.5C132 267.1 151.6 271.1 158.9 285.8L168.2 304.3C172.1 313.9 182.8 319.1 193.5 319.1C208.7 319.1 219.6 305.4 215.2 290.8L209.3 270.9C204.6 255.5 216.2 240 232.3 240H234.6C247.1 240 260.5 233.3 267.9 222.2L278.6 206.1C284.2 197.7 283.9 186.6 277.8 178.4L261.7 156.9C251.4 143.2 258.4 123.4 275.1 119.2L292.1 114.1C299.6 113.1 305.7 107.8 308.6 100.6L324.9 59.69C303.4 52.12 280.2 48 255.1 48C141.1 48 47.1 141.1 47.1 256C47.1 269.4 49.26 282.5 51.68 295.1L51.68 295.1zM450.4 300.4L434.6 304.9C427.9 306.7 420.8 304 417.1 298.2L415.1 295.1C409.1 285.7 398.7 279.1 387.5 279.1C376.4 279.1 365.1 285.7 359.9 295.1L353.8 304.6C352.4 306.8 350.5 308.7 348.2 309.1L311.1 330.1C293.9 340.2 286.5 362.5 294.1 381.4L300.5 393.8C309.1 413 331.2 422.3 350.1 414.9L353.5 413.1C363.6 410.2 374.8 411.8 383.5 418.1L385 419.2C422.2 389.7 449.1 347.8 459.4 299.7C456.4 299.4 453.4 299.6 450.4 300.4H450.4zM156.1 367.5L188.1 375.5C196.7 377.7 205.4 372.5 207.5 363.9C209.7 355.3 204.5 346.6 195.9 344.5L163.9 336.5C155.3 334.3 146.6 339.5 144.5 348.1C142.3 356.7 147.5 365.4 156.1 367.5V367.5zM236.5 328.1C234.3 336.7 239.5 345.4 248.1 347.5C256.7 349.7 265.4 344.5 267.5 335.9L275.5 303.9C277.7 295.3 272.5 286.6 263.9 284.5C255.3 282.3 246.6 287.5 244.5 296.1L236.5 328.1zM321.7 120.8L305.7 152.8C301.7 160.7 304.9 170.4 312.8 174.3C320.7 178.3 330.4 175.1 334.3 167.2L350.3 135.2C354.3 127.3 351.1 117.6 343.2 113.7C335.3 109.7 325.6 112.9 321.7 120.8V120.8z\"><\/path><\/svg><span>\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea<\/span><\/a><\/div>\n\n\n\n<p>\u305f\u3060\u3001\u30dc\u30bf\u30f3\u3060\u3089\u3051\u3067\u76f8\u5f53\u5206\u304b\u308a\u3065\u3089\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_announce\">\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u304c\u958b\u3051\u306a\u3044\u5834\u5408\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30e2\u30fc\u30c9\u3067\u958b\u3044\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br><span class=\"swl-fz u-fz-xs\">\u203b \u4f01\u696d\u306e\u30b3\u30fc\u30dd\u30ec\u30fc\u30c8\u30dd\u30ea\u30b7\u30fc\u306b\u3088\u3063\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u3068\u958b\u3051\u306a\u3044\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<h2 id=\"getAs(contentType)\">getAs(contentType)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<ul id=\"block-61a13241-f960-4372-8576-864d74085b64\" class=\"is-style-good_list\"><li>contentType\uff08\u6587\u5b57\u5217\uff09 \u2014 \u5909\u63db\u3057\u305f\u3044MIME\u30bf\u30a4\u30d7\u3092\u6e21\u3059<\/li><\/ul>\n\n\n\n<p>contentType\u306b\u6307\u5b9a\u3067\u304d\u308b\u307b\u3068\u3093\u3069\u306eBlob\u30c7\u30fc\u30bf\u306b\u5229\u7528\u3067\u304d\u308bMIME\u30bf\u30a4\u30d7\u306f\u3001\u300e<span class=\"swl-marker mark_orange\"><strong>application\/pdf<\/strong><\/span>\u300f\u306e\u307f\u3068\u306a\u308a\u3001PDF\u306b\u5909\u63db\u3059\u308b\u969b\u306b\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3057\u3001\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u304c\u753b\u50cf\u306e\u5834\u5408\u306f\u3001\u5909\u63db\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u306b\u3088\u3063\u3066\u4e0b\u8a18\u306eMIME\u30bf\u30a4\u30d7\u304c\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular td_to_th_ is-all-centered\"><table class=\"has-fixed-layout\"><thead><tr><th>\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f<\/th><th>MIME\u30bf\u30a4\u30d7<\/th><\/tr><\/thead><tbody><tr><td>BMP\u30d5\u30a1\u30a4\u30eb<\/td><td><span class=\"swl-marker mark_orange\"><strong>image\/bmp<\/strong><\/span><\/td><\/tr><tr><td>GIF\u30d5\u30a1\u30a4\u30eb<\/td><td><span class=\"swl-marker mark_orange\"><strong>image\/gif<\/strong><\/span><\/td><\/tr><tr><td>JPEG\u30d5\u30a1\u30a4\u30eb<\/td><td><span class=\"swl-marker mark_orange\"><strong>image\/jpeg<\/strong><\/span><\/td><\/tr><tr><td>PNG\u30d5\u30a1\u30a4\u30eb<\/td><td><span class=\"swl-marker mark_orange\"><strong>image\/png<\/strong><\/span><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getAs(contentType)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const SAMPLE_SHEET_ID = &quot;11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18&quot;; \/\/https:\/\/docs.google.com\/spreadsheets\/d\/11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18\/\n\/\/\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092PDF\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u63db\u3057\u3066Blob\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetAs() {\n  let file = DriveApp.getFileById(SAMPLE_SHEET_ID);\n  let fileName = file.getName() + &quot;.pdf&quot;;\n  let blob = file.getAs(&quot;application\/pdf&quot;).setName(fileName);\n  let rootFolder = DriveApp.getRootFolder();\n  rootFolder.createFile(blob);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">SAMPLE_SHEET_ID&nbsp;= PDF\u5909\u63db\u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8ID<br>file&nbsp;= \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<br>fileName = \u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\uff08\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u5834\u5408\u62e1\u5f35\u5b50\u304c\u898b\u3048\u306a\u3044\u305f\u3081\u3001.pdf\u3092\u660e\u793a\u3057\u3066\u3042\u3052\u307e\u3059\uff09<br>blob = PDF\u5909\u63db\u5f8c\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<br>rootFolder = \u30de\u30a4\u30c9\u30e9\u30a4\u30d6\u30d5\u30a9\u30eb\u30c0<\/p>\n\n\n\n<div class=\"swell-block-button is-style-btn_normal\" data-id=\"7487365b\"><a href=\"\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"swell-block-button__link\"><span>\u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<\/span><\/a><\/div>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092PDF\u306b\u5909\u63db\u3057\u3066\u30de\u30a4\u30c9\u30e9\u30a4\u30d6\u76f4\u4e0b\u306bPDF\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210<\/strong><\/span>\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u9650\u3089\u305a\u3001<span class=\"swl-marker mark_orange\"><strong>Google\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084Google\u30b9\u30e9\u30a4\u30c9\u306a\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u3082PDF\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3084Google\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306a\u3069\u306f\u3001Google\u30c9\u30e9\u30a4\u30d6\u4e0a\u3067\u62e1\u5f35\u5b50\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001PDF\u5316\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u540d\u524d\u3092\u3064\u3051\u308b\u969b\u306f\u300e.pdf\u300f\u3092\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u8ffd\u52a0\u3057\u3066\u3042\u3052\u307e\u3057\u3087\u3046<\/strong><\/span>\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_announce\">Google\u30c9\u30e9\u30a4\u30d6\u4e0a\u3067\u306fPDF\u62e1\u5f35\u5b50\u304c\u306a\u304f\u3066\u3082PDF\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u307e\u3059\u304c\u3001<span class=\"swl-marker mark_orange\"><strong>\u30d1\u30bd\u30b3\u30f3\u7528\u306e\u540c\u671f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u30ed\u30fc\u30ab\u30eb\u30d1\u30bd\u30b3\u30f3\u4e0a\u3067\u306f\u62e1\u5f35\u5b50\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093<\/strong><\/span>\u3002<\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u63db\u3057\u305f\u3060\u3051\u3067\u306fGoogle\u30c9\u30e9\u30a4\u30d6\u306b\u4fdd\u5b58\u3055\u308c\u307e\u305b\u3093\u306e\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u304c\u5fc5\u8981\u306a\u5834\u5408\u306fcreateFile\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u4efb\u610f\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center is-style-big_icon_point\"><span class=\"swl-marker mark_orange\"><strong><span class=\"swl-fz u-fz-l\">\u5909\u63db\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb\u3092Google\u30c9\u30e9\u30a4\u30d6\u306b\u4fdd\u5b58\u3059\u308b\u3068\u304d\u306fcreateFile\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u304a\u3046<\/span><\/strong><\/span><\/p>\n\n\n\n<h2 id=\"getBlob()\">getBlob()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a1\u30a4\u30eb\u3092Blob\u30c7\u30fc\u30bf\u3068\u3057\u3066\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u53d6\u5f97\u3057\u305fBlob\u30c7\u30fc\u30bf\u306f\u69d8\u3005\u306a\u51e6\u7406\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-group has-border -border01\"><div class=\"wp-block-group__inner-container\">\n<ul class=\"is-style-check_list -list-under-dashed\"><li>Google\u30c9\u30e9\u30a4\u30d6\u4e0a\u3067\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210<\/li><li>\u5143\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u5171\u6709\u6a29\u9650\u3092\u4ed8\u4e0e\u305b\u305a\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u305b\u308b<\/li><li>\u30e1\u30fc\u30eb\u306b\u6dfb\u4ed8\u3059\u308b \u306a\u3069\u306a\u3069<\/li><\/ul>\n<\/div><\/div>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getBlob()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const IMAGE_ID = &quot;1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2&quot;; \/\/https:\/\/drive.google.com\/file\/d\/1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2\/view?usp=sharing\n\/\/PNG\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306eBlob\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetBlob() {\n  let file = DriveApp.getFileById(IMAGE_ID);\n  let fileName = file.getName();\n  let blob = file.getBlob().setName(fileName);\n  let rootFolder = DriveApp.getRootFolder();\n  rootFolder.createFile(blob);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">IMAGE_ID&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30ebID<br>file&nbsp;= \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<br>fileName = \u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\uff08\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u5834\u5408\u62e1\u5f35\u5b50\u304c\u898b\u3048\u306a\u3044\u305f\u3081\u3001.pdf\u3092\u660e\u793a\u3057\u3066\u3042\u3052\u307e\u3059\uff09<br>blob = \u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306eBlob\u30c7\u30fc\u30bf<br>rootFolder = \u30de\u30a4\u30c9\u30e9\u30a4\u30d6\u30d5\u30a9\u30eb\u30c0<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u4e0a\u8a18\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001<span class=\"swl-marker mark_orange\"><strong>Google\u30c9\u30e9\u30a4\u30d6\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092Blob\u30c7\u30fc\u30bf\u3067\u53d6\u5f97\u3057\u3066\u3001\u30de\u30a4\u30c9\u30e9\u30a4\u30d6\u306b\u65b0\u305f\u306b\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u30b3\u30fc\u30c9<\/strong><\/span>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306fsetName\u3067Blob\u30c7\u30fc\u30bf\u306b\u540d\u524d\u3092\u4ed8\u3051\u3066\u3044\u307e\u3059\u304c\u3001\u5143\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u540c\u3058\u3067\u3042\u308c\u3070\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>Blob\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066Google\u30c9\u30e9\u30a4\u30d6\u4e0a\u306b\u65b0\u3057\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001Gmail\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u6dfb\u4ed8\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"Blob\u30c7\u30fc\u30bf\u3092\u30e1\u30fc\u30eb\u306b\u6dfb\u4ed8\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>\/\/PNG\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306eBlob\u30c7\u30fc\u30bf\u3092\u30e1\u30fc\u30eb\u6dfb\u4ed8\u3067\u9001\u4fe1\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForSendGmailWithBlobAttached() {\n  let file = DriveApp.getFileById(IMAGE_ID);\n  let fileName = file.getName();\n  let blob = file.getBlob().setName(fileName);\n  let recipient = Session.getActiveUser().getEmail();\n  let subject = &quot;\u30e1\u30fc\u30eb\u6dfb\u4ed8\u30c6\u30b9\u30c8&quot;;\n  let body = &quot;Blob\u30c7\u30fc\u30bf\u3092\u30e1\u30fc\u30eb\u306b\u6dfb\u4ed8\u3057\u3066\u9001\u4fe1\u3059\u308b\u30c6\u30b9\u30c8\u30e1\u30fc\u30eb&quot;;\n  let options = {\n    attachments: [blob],\n  }\n  MailApp.sendEmail(recipient, subject, body, options);\n}<\/code><\/pre><\/div>\n\n\n\n<p class=\"has-text-align-center is-style-icon_announce\"><span class=\"swl-marker mark_orange\"><strong><span class=\"swl-fz u-fz-l\">Blob\u30c7\u30fc\u30bf\u306f\u30e1\u30fc\u30eb\u3078\u306e\u30d5\u30a1\u30a4\u30eb\u6dfb\u4ed8\u306b\u3082\u4f7f\u3048\u308b<\/span><\/strong><\/span><\/p>\n\n\n\n<h2 id=\"getDateCreated()\">getDateCreated()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u65e5\u6642\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getDateCreated()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const SAMPLE_SHEET_ID = &quot;11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18&quot;; \/\/https:\/\/docs.google.com\/spreadsheets\/d\/11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18\/\n\/\/\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u65e5\u6642\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetDateCreated() {\n  let file = DriveApp.getFileById(SAMPLE_SHEET_ID);\n  let createDate = file.getDateCreated();\n  createDate = Utilities.formatDate(createDate, &quot;JST&quot;, &quot;yyyy\u5e74MM\u6708dd\u65e5 HH\u6642mm\u5206ss\u79d2&quot;);\n  console.log(createDate);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">SAMPLE_SHEET_ID&nbsp;= \u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8ID<br>file&nbsp;= \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<br>createDate = \u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u65e5\u6642<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u4e0a\u8a18\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u65e5\u6642\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b<span class=\"swl-marker mark_orange\"><strong>\u975e\u5e38\u306b\u7c21\u5358\u306b\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u65e5\u6642\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<p>\u3082\u3057<span class=\"swl-marker mark_orange\"><strong>\u53d6\u5f97\u3057\u305f\u4f5c\u6210\u65e5\u6642\u3092\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306b\u8fd4\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u65e5\u4ed8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6587\u5b57\u5217\u3084\u6570\u5024\u306b\u5909\u63db\u3057\u3066\u304b\u3089\u6e21\u3059\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046<\/strong><\/span>\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center is-style-icon_info\"><span class=\"swl-marker mark_orange\"><strong><span class=\"swl-fz u-fz-l\">\u65e5\u4ed8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306b\u8fd4\u3059\u3053\u3068\u306e\u3067\u304d\u306a\u3044\u30c7\u30fc\u30bf\u5f62\u5f0f\u3067\u3059<\/span><\/strong><\/span><\/p>\n\n\n\n<p>\u65e5\u4ed8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092<span class=\"swl-marker mark_orange\"><strong>\u4efb\u610f\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u6587\u5b57\u5217\u306b\u5909\u63db\u3059\u308b\u5834\u5408<\/strong><\/span>\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b<span class=\"swl-marker mark_orange\"><strong>Utilities.formatDate(date, timeZone, format)\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528<\/strong><\/span>\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-group has-border -border01\"><div class=\"wp-block-group__inner-container\">\n<ul class=\"is-style-good_list -list-under-dashed\"><li>\u5f15\u6570date\u306b\u306f\u65e5\u4ed8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/li><li>\u5f15\u6570timeZone\u306b\u306f\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\u300eJST\u300f\u306fJapan Standard Time\uff08\u65e5\u672c\u6a19\u6e96\u6642\u9593\uff09\u3092\u8868\u3057\u307e\u3059<\/li><li>\u5f15\u6570format\u306b\u306f\u3001\u65e5\u4ed8\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li><\/ul>\n\n\n\n<p class=\"is-style-icon_info\">\u65e5\u4ed8\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3001\u6307\u5b9a\u3067\u304d\u308b\u306e\u306fSimpleDateFormat\u5f62\u5f0f\u3067\u3059\u3002\uff08<a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/text\/SimpleDateFormat.html\" data-type=\"URL\" data-id=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/text\/SimpleDateFormat.html\" target=\"_blank\" rel=\"noreferrer noopener\">\u53c2\u8003\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3010\u82f1\u6587\u3011<\/a>\uff09<\/p>\n<\/div><\/div>\n\n\n\n<h2 id=\"getDescription()\">getDescription()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u8a73\u7d30\u8aac\u660e\u6b04\u306b\u8a18\u8f09\u3055\u308c\u305f\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u8a73\u7d30\u8aac\u660e\u6b04\u3068\u306f\u3001\u4e0b\u8a18\u306e\u8d64\u67a0\u3067\u56f2\u308f\u308c\u305f\u90e8\u5206\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img width=\"1024\" height=\"492\" src=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/06\/show_description_area.png?resize=1024%2C492&#038;ssl=1\" alt=\"\" class=\"wp-image-3134\" srcset=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/06\/show_description_area.png?resize=1024%2C492&amp;ssl=1 1024w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/06\/show_description_area.png?resize=300%2C144&amp;ssl=1 300w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/06\/show_description_area.png?resize=768%2C369&amp;ssl=1 768w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/06\/show_description_area.png?resize=1536%2C738&amp;ssl=1 1536w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/06\/show_description_area.png?w=1915&amp;ssl=1 1915w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getDescription()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const SAMPLE_SHEET_ID = &quot;11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18&quot;; \/\/https:\/\/docs.google.com\/spreadsheets\/d\/11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18\/\n\/\/\u30d5\u30a1\u30a4\u30eb\u306e\u8aac\u660e\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetDescription() {\n  let file = DriveApp.getFileById(SAMPLE_SHEET_ID);\n  let description = file.getDescription();\n  console.log(description);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">SAMPLE_SHEET_ID&nbsp;= \u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8ID<br>file&nbsp;= \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<br>description = \u30d5\u30a1\u30a4\u30eb\u306e\u8a73\u7d30\u8aac\u660e<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u30d5\u30a1\u30a4\u30eb\u306e\u8a73\u7d30\u8aac\u660e\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001<span class=\"swl-marker mark_orange\"><strong>\u51fa\u529b\u30ed\u30b0\u306b\u300e\u30b5\u30f3\u30d7\u30eb\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u8a73\u7d30\u8aac\u660e\u300f\u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u51fa\u529b<\/strong><\/span>\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>Google\u30c9\u30e9\u30a4\u30d6\u306e\u691c\u7d22\u6a5f\u80fd\u3067\u306f\u3001\u8a73\u7d30\u8aac\u660e\u6b04\u306b\u8a18\u8f09\u3055\u308c\u305f\u6587\u5b57\u5217\u3082\u542b\u3081\u3066\u691c\u7d22\u304c\u3067\u304d\u307e\u3059<\/strong><\/span>\u306e\u3067\u3001<span class=\"swl-marker mark_orange\"><strong>\u753b\u50cf\u306a\u3069\u306b\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3068\u6587\u5b57\u3067\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u691c\u7d22\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center is-style-icon_info\"><span class=\"swl-marker mark_orange\"><strong><span class=\"swl-fz u-fz-l\">\u8a73\u7d30\u8aac\u660e\u6b04\u3092\u3046\u307e\u304f\u6d3b\u7528\u3059\u308c\u3070\u4eca\u307e\u3067\u691c\u7d22\u3067\u304d\u306a\u304b\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u691c\u7d22\u3067\u304d\u308b\u3088\u3046\u306b<\/span><\/strong><\/span><\/p>\n\n\n\n<h2 id=\"getDownloadUrl()\">getDownloadUrl()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9URL\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getDownloadUrl()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const IMAGE_ID = &quot;1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2&quot;; \/\/https:\/\/drive.google.com\/file\/d\/1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2\/view?usp=sharing\n\/\/\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9URL\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetDownloadUrl() {\n  let file = DriveApp.getFileById(IMAGE_ID);\n  let downloadUrl = file.getDownloadUrl();\n  console.log(downloadUrl);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">IMAGE_ID&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30ebID<br>file&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30eb<br>downloadUrl = \u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u7528URL<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u4e0a\u8a18\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u7528URL\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9URL\u306f\u300e<span class=\"swl-marker mark_orange\"><strong>https:\/\/drive.google.com\/uc?id= <span class=\"swl-inline-color has-swl-deep-01-color\">{{FILE_ID}}<\/span>&amp;export=download<\/strong><\/span>\u300f\u3068\u3044\u3046\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u306eID\u3055\u3048\u308f\u304b\u308c\u3070\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3082\u7c21\u5358\u306b\u751f\u6210\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 id=\"getId()\">getId()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30ebID\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getId()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const IMAGE_ID = &quot;1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2&quot;; \/\/https:\/\/drive.google.com\/file\/d\/1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2\/view?usp=sharing\n\/\/\u30d5\u30a1\u30a4\u30eb\u306eID\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetId() {\n  let file = DriveApp.getFileById(IMAGE_ID);\n  let fileId = file.getId();\n  console.log(fileId);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">IMAGE_ID&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30ebID<br>file&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30eb<br>fileId = \u53d6\u5f97\u3057\u305f\u30d5\u30a1\u30a4\u30ebID<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u4e0a\u8a18\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001ID\u3067\u53d6\u5f97\u3057\u305f\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306eID\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u53d6\u5f97\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u307b\u3068\u3093\u3069\u5b9f\u7528\u6027\u306e\u306a\u3044\u30b3\u30fc\u30c9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u969b\u306e\u4f7f\u7528\u4f8b\u3067\u306f\u3001<span class=\"swl-marker mark_orange\"><strong>\u691c\u7d22\u30af\u30a8\u30ea\u306a\u3069\u3067\u53d6\u5f97\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u7fa4\u304b\u3089\u3001ID\u3092\u53d6\u5f97\u3057\u3066SpreadsheetApp\u306e\u30b3\u30fc\u30c9\u306b\u7e4b\u3052\u305f\u308a\u3059\u308b\u969b\u306b\u7528\u3044\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30ebID\u306fGAS\u3092\u4f7f\u7528\u3057\u305f\u696d\u52d9\u52b9\u7387\u5316\u306b\u304a\u3044\u3066\u5fc5\u8981\u4e0d\u53ef\u6b20\u306a\u8981\u7d20\u3067\u3059\u306e\u3067\u3001ID\u306e\u53d6\u5f97\u65b9\u6cd5\u306f\u8eab\u306b\u3064\u3051\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u4ee5\u5916\u3067\u30d5\u30a1\u30a4\u30ebID\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306eURL\u304b\u3089\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u300ehttps:\/\/docs.google.com\/spreadsheets\/d\/<span class=\"swl-marker mark_orange\"><strong>11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18<\/strong><\/span>\/edit?usp=sharing\u300f\u3068\u3044\u3046\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eURL\u3067\u306f\u3001\u30cf\u30a4\u30e9\u30a4\u30c8\u3057\u305f\u90e8\u5206\u304c\u30d5\u30a1\u30a4\u30ebID\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"getLastUpdated()\">getLastUpdated()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u7d42\u66f4\u65b0\u65e5\u6642\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<ul id=\"block-61a13241-f960-4372-8576-864d74085b64\" class=\"is-style-good_list\"><li>id\uff08\u6587\u5b57\u5217\uff09 \u2014 \u53d6\u5f97\u3057\u305f\u3044\u30d5\u30a9\u30eb\u30c0ID\u3092\u4ee3\u5165<\/li><\/ul>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getLastUpdated()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const SAMPLE_SHEET_ID = &quot;11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18&quot;; \/\/https:\/\/docs.google.com\/spreadsheets\/d\/11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18\/\n\/\/\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u7d42\u66f4\u65b0\u65e5\u6642\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetLastUpdated() {\n  let file = DriveApp.getFileById(SAMPLE_SHEET_ID);\n  let updatedDate = file.getLastUpdated();\n  updatedDate = Utilities.formatDate(updatedDate, &quot;JST&quot;, &quot;yyyy\u5e74MM\u6708dd\u65e5 HH\u6642mm\u5206ss\u79d2&quot;);\n  console.log(updatedDate);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">SAMPLE_SHEET_ID&nbsp;= \u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8ID<br>file&nbsp;= \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<br>updatedDate = \u6700\u7d42\u66f4\u65b0\u65e5\u6642<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u4e0a\u8a18\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u7d42\u66f4\u65b0\u65e5\u6642\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4f5c\u6210\u65e5\u6642\u3068\u540c\u3058\u3088\u3046\u306b\u3001<span class=\"swl-marker mark_orange\"><strong>\u975e\u5e38\u306b\u7c21\u5358\u306b\u6700\u7d42\u66f4\u65b0\u65e5\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<p>\u3082\u3057<span class=\"swl-marker mark_orange\"><strong>\u53d6\u5f97\u3057\u305f\u6700\u7d42\u66f4\u65b0\u65e5\u6642\u3092\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306b\u8fd4\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u65e5\u4ed8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6587\u5b57\u5217\u3084\u6570\u5024\u306b\u5909\u63db\u3057\u3066\u304b\u3089\u6e21\u3059\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046<\/strong><\/span>\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center is-style-icon_info\"><span class=\"swl-marker mark_orange\"><strong><span class=\"swl-fz u-fz-l\">\u65e5\u4ed8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306b\u8fd4\u3059\u3053\u3068\u306e\u3067\u304d\u306a\u3044\u30c7\u30fc\u30bf\u5f62\u5f0f\u3067\u3059<\/span><\/strong><\/span><\/p>\n\n\n\n<p>\u65e5\u4ed8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092<span class=\"swl-marker mark_orange\"><strong>\u4efb\u610f\u306e\u65e5\u4ed8\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u6587\u5b57\u5217\u306b\u5909\u63db\u3059\u308b\u5834\u5408<\/strong><\/span>\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b<span class=\"swl-marker mark_orange\"><strong>Utilities.formatDate(date, timeZone, format)\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528<\/strong><\/span>\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-group has-border -border01\"><div class=\"wp-block-group__inner-container\">\n<ul class=\"is-style-good_list -list-under-dashed\"><li>\u5f15\u6570date\u306b\u306f\u65e5\u4ed8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/li><li>\u5f15\u6570timeZone\u306b\u306f\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\u300eJST\u300f\u306fJapan Standard Time\uff08\u65e5\u672c\u6a19\u6e96\u6642\u9593\uff09\u3092\u8868\u3057\u307e\u3059<\/li><li>\u5f15\u6570format\u306b\u306f\u3001\u65e5\u4ed8\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li><\/ul>\n\n\n\n<p class=\"is-style-icon_info\">\u65e5\u4ed8\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3001\u6307\u5b9a\u3067\u304d\u308b\u306e\u306fSimpleDateFormat\u5f62\u5f0f\u3067\u3059\u3002\uff08<a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/text\/SimpleDateFormat.html\" data-type=\"URL\" data-id=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/text\/SimpleDateFormat.html\" target=\"_blank\" rel=\"noreferrer noopener\">\u53c2\u8003\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3010\u82f1\u6587\u3011<\/a>\uff09<\/p>\n<\/div><\/div>\n\n\n\n<h2 id=\"getMimeType()\">getMimeType()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u306eMIME\u30bf\u30a4\u30d7\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h3>\u53d6\u5f97\u3067\u304d\u308bMIME\u30bf\u30a4\u30d7<\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><thead><tr><th>\u62e1\u5f35\u5b50<\/th><th>MIME\u30bf\u30a4\u30d7<\/th><\/tr><\/thead><tbody><tr><td>Google Docs<\/td><td>application\/vnd.google-apps.document<\/td><\/tr><tr><td>Google Forms<\/td><td>application\/vnd.google-apps.form<\/td><\/tr><tr><td>Google My Maps<\/td><td>application\/vnd.google-apps.map<\/td><\/tr><tr><td>Google Slides<\/td><td>application\/vnd.google-apps.presentation<\/td><\/tr><tr><td>Google Apps Script<\/td><td>application\/vnd.google-apps.script<\/td><\/tr><tr><td>Google Sites<\/td><td>application\/vnd.google-apps.site<\/td><\/tr><tr><td>Google Sheets<\/td><td>application\/vnd.google-apps.spreadsheet<\/td><\/tr><tr><td>xls<\/td><td>application\/vnd.ms-excel<\/td><\/tr><tr><td>xlsx<\/td><td>application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet<\/td><\/tr><tr><td>xml<\/td><td>text\/xml<\/td><\/tr><tr><td>ods<\/td><td>application\/vnd.oasis.opendocument.spreadsheet<\/td><\/tr><tr><td>csv<\/td><td>text\/csv<\/td><\/tr><tr><td>tmpl<\/td><td>text\/plain<\/td><\/tr><tr><td>pdf<\/td><td>application\/pdf<\/td><\/tr><tr><td>php<\/td><td>application\/x-httpd-php<\/td><\/tr><tr><td>jpg<\/td><td>image\/jpeg<\/td><\/tr><tr><td>png<\/td><td>image\/png<\/td><\/tr><tr><td>gif<\/td><td>image\/gif<\/td><\/tr><tr><td>bmp<\/td><td>image\/bmp<\/td><\/tr><tr><td>txt<\/td><td>text\/plain<\/td><\/tr><tr><td>doc<\/td><td>application\/msword<\/td><\/tr><tr><td>js<\/td><td>text\/js<\/td><\/tr><tr><td>swf<\/td><td>application\/x-shockwave-flash<\/td><\/tr><tr><td>mp3<\/td><td>audio\/mpeg<\/td><\/tr><tr><td>zip<\/td><td>application\/zip<\/td><\/tr><tr><td>rar<\/td><td>application\/rar<\/td><\/tr><tr><td>tar<\/td><td>application\/tar<\/td><\/tr><tr><td>arj<\/td><td>application\/arj<\/td><\/tr><tr><td>cab<\/td><td>application\/cab<\/td><\/tr><tr><td>html<\/td><td>text\/html<\/td><\/tr><tr><td>htm<\/td><td>text\/htm<\/td><\/tr><tr><td>default<\/td><td>application\/octet-stream<\/td><\/tr><tr><td>shortcut<\/td><td>application\/vnd.google-apps.shortcut<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getMimeType()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const SAMPLE_SHEET_ID = &quot;11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18&quot;; \/\/https:\/\/docs.google.com\/spreadsheets\/d\/11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18\/\n\/\/\u30d5\u30a1\u30a4\u30eb\u306eMimeType\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetMimeType() {\n  let file = DriveApp.getFileById(SAMPLE_SHEET_ID);\n  let mimeType = file.getMimeType();\n  console.log(mimeType);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">SAMPLE_SHEET_ID&nbsp;= \u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8ID<br>file&nbsp;= \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<br>mimeType = \u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306eMIME\u30bf\u30a4\u30d7<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u4e0a\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30a1\u30a4\u30eb\u30bf\u30a4\u30d7\u304c\u4f55\u306e\u30d5\u30a1\u30a4\u30eb\u30bf\u30a4\u30d7\u306a\u306e\u304b\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u4eca\u56de\u306e<span class=\"swl-marker mark_orange\"><strong>\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u3059\u306e\u3067\u3001\u30ed\u30b0\u306b\u306f\u300eapplication\/vnd.google-apps.spreadsheet\u300f\u304c\u51fa\u529b<\/strong><\/span>\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u30bf\u30a4\u30d7\u306b\u3088\u3063\u3066\u51e6\u7406\u3092\u5206\u5c90\u3055\u305b\u305f\u3044\u3068\u304d\u306b\u6709\u52b9\u3067\u3059\u3002<\/p>\n\n\n\n<h2 id=\"getName()\">getName()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u30d5\u30a9\u30eb\u30c0\u540d \/ \u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getName()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const SAMPLE_SHEET_ID = &quot;11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18&quot;; \/\/https:\/\/docs.google.com\/spreadsheets\/d\/11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18\/\n\/\/\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetName() {\n  let file = DriveApp.getFileById(SAMPLE_SHEET_ID);\n  let fileName = file.getName();\n  console.log(fileName);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">SAMPLE_SHEET_ID&nbsp;= \u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8ID<br>file&nbsp;= \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<br>fileName = \u30d5\u30a1\u30a4\u30eb\u540d<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u53d6\u5f97\u3057\u305f\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br><span class=\"swl-marker mark_orange\"><strong>\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u62e1\u5f35\u5b50\u304c\u542b\u307e\u308c\u3066\u3044\u308c\u3070\u62e1\u5f35\u5b50\u3082\u542b\u3081\u3066\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97<\/strong><\/span>\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"getParents()\">getParents()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u30a4\u30c6\u30ec\u30fc\u30bf\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getParents()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const SAMPLE_SHEET_ID = &quot;11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18&quot;; \/\/https:\/\/docs.google.com\/spreadsheets\/d\/11Tzg6togdpKRK9o1MI8SCXMizJeTBWjZRhMFdqXdp18\/\n\/\/\u89aa\u30d5\u30a9\u30eb\u30c0\u306e\u30d5\u30a9\u30eb\u30c0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetParents() {\n  let file = DriveApp.getFileById(SAMPLE_SHEET_ID);\n  let parentFolder = file.getParents().next();\n  let parentFolderName = parentFolder.getName();\n  console.log(parentFolderName);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">SAMPLE_SHEET_ID&nbsp;= \u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8ID<br>file&nbsp;= \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<br>parentFolder = \u89aa\u30d5\u30a9\u30eb\u30c0<br>parentFolderName = \u89aa\u30d5\u30a9\u30eb\u30c0\u540d<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u7686\u3055\u3093\u3001<span class=\"swl-marker mark_orange\"><strong>\u5c11\u3057\u9055\u548c\u611f\u3092\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001getParents\u30e1\u30bd\u30c3\u30c9\u306f\u5b9f\u306f\u8907\u6570\u5f62<\/strong><\/span>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002getParents\u30e1\u30bd\u30c3\u30c9\u304c\u8907\u6570\u306a\u306e\u306b\u306f\u7406\u7531\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u4ee5\u524d\u306eGoogle\u30c9\u30e9\u30a4\u30d6\u3067\u306f\u3001\u30d5\u30a9\u30eb\u30c0 \/ \u30d5\u30a1\u30a4\u30eb\u304c\u8907\u6570\u306e\u89aa\u30d5\u30a9\u30eb\u30c0\u3092\u6301\u3064\u3053\u3068\u304c\u53ef\u80fd<\/strong><\/span>\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001getParents\u30e1\u30bd\u30c3\u30c9\u306f\u8907\u6570\u5f62\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br>\u3057\u304b\u3057\u306a\u304c\u3089\u30012020 \u5e749\u67083\u65e5\u306b<span class=\"swl-marker mark_orange\"><strong>Google\u30c9\u30e9\u30a4\u30d6\u306b\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u4f5c\u6210\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u305f\u3053\u3068\u3067\u30011\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u3092\u8907\u6570\u306e\u89aa\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u3001\u305d\u308c\u3068\u540c\u6642\u306b\u3001\u8907\u6570\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u683c\u7d0d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/strong><\/span><\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u4ee5\u524d\u306e\u540d\u6b8b\u304c\u305d\u306e\u307e\u307e\u30e1\u30bd\u30c3\u30c9\u306b\u6b8b\u308a\u7d9a\u3051\u3066\u3044\u308b\u305f\u3081\u306b\u3001getParents\u30e1\u30bd\u30c3\u30c9\u306f\u8907\u6570\u5f62\u306e\u307e\u307e<\/strong><\/span>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong><span class=\"swl-inline-color has-swl-deep-01-color\">\u73fe\u5728\u306f\u8907\u6570\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093<\/span><\/strong><\/span>\u306e\u3067\u3001\u8fd1\u3044\u5c06\u6765getParents\u30e1\u30bd\u30c3\u30c9\u306f\u5358\u6570\u5f62\u306b\u5909\u308f\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>getParents\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u30d5\u30a9\u30eb\u30c0\u30a4\u30c6\u30ec\u30fc\u30bf\u304c\u53d6\u5f97\u3055\u308c\u307e\u3059\u304c\u3001\u683c\u7d0d\u3055\u308c\u308b\u30d5\u30a9\u30eb\u30c0\u306f\u5e38\u306b1\u3064\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001getParents\u30e1\u30bd\u30c3\u30c9\u306f\u5e38\u306bgetParents().next()\u3068\u3044\u3046\u5f62\u3067\u5229\u7528\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3092\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046<\/strong><\/span>\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_info\">next\u30e1\u30bd\u30c3\u30c9\u3068\u4f75\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u89aa\u30d5\u30a9\u30eb\u30c0\u306e\u30d5\u30a9\u30eb\u30c0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059<\/p>\n\n\n\n<h2 id=\"getResourceKey()\">getResourceKey()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u306e<span class=\"swl-marker mark_orange\"><strong>\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc<\/strong><\/span>\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h3>\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u3068\u306f<\/h3>\n\n\n\n<p>Google\u304c2021\u5e749\u670813\u65e5\u306b\u9069\u7528\u3057\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u95a2\u9023\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u3059\u3002<br>\u305d\u308c\u307e\u3067\u306eGoogle\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001\u5171\u6709\u30ea\u30f3\u30af\u3092\u53d6\u5f97\u3059\u308b<\/p>\n\n\n\n<p>\u300e<span class=\"swl-marker mark_orange\"><strong>https:\/\/drive.google.com\/file\/d\/{{FILE_ID}}\/view?usp=sharing<\/strong><\/span>\u300f<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u5f62\u5f0f\u3067\u30ea\u30f3\u30af\u304c\u751f\u6210\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3068\u3053\u308d\u304c\u3001<span class=\"swl-marker mark_orange\"><strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u9069\u7528\u5f8c\u3001\u3042\u308b\u6761\u4ef6\u3092\u6e80\u305f\u3059\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u306fresourceKey\u3068\u3044\u3046\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u4ed8\u4e0e\u3055\u308c\u308b<\/strong><\/span>\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u9069\u7528\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30f3\u30afURL\u3092\u53d6\u5f97\u3059\u308b\u3068\u3001<\/p>\n\n\n\n<p>\u300e<span class=\"swl-marker mark_orange\"><strong>https:\/\/drive.google.com\/file\/d\/{{FILE_ID}}\/view?usp=sharing<span class=\"swl-inline-color has-swl-deep-01-color\">?resourcekey={{RESOURCEKEY}}<\/span><\/strong><\/span>\u300f<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u5f62\u3067\u751f\u6210\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u4eca\u307e\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30ebID\u3055\u3048\u308f\u304b\u308c\u3070\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3044\u305f<\/strong><\/span>\u3068\u3053\u308d\u304c\u3001<span class=\"swl-marker mark_orange\"><strong>\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u3068\u3044\u3046\u3082\u306e\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u3001\u3088\u308a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6027\u304c\u5411\u4e0a<\/strong><\/span>\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u8a73\u3057\u3044\u8aac\u660e\u306b\u3064\u3044\u3066\u306f\u3001<a rel=\"noreferrer noopener\" href=\"https:\/\/support.google.com\/drive\/answer\/10729743?hl=ja&amp;ref_topic=7000947\" data-type=\"URL\" data-id=\"https:\/\/support.google.com\/drive\/answer\/10729743?hl=ja&amp;ref_topic=7000947\" target=\"_blank\">Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d8\u30eb\u30d7\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u30d8\u30eb\u30d7\u3092\u898b\u308b\u9650\u308a\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3084\u30b9\u30e9\u30a4\u30c9\u7b49\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u5f71\u97ff\u3092\u53d7\u3051\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u79c1\u306e\u5834\u5408\u306f\u3001\u305d\u306e\u4ed6\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u9069\u7528\u3057\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u304c\u3001<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u4e0a\u90e8\u306e\u691c\u7d22\u30d0\u30fc\u306b\u3001\u300cis:security_update_applied\u300d\u307e\u305f\u306f\u300cis:security_update_removed\u300d\u3068\u5165\u529b\u3057\u307e\u3059\u3002<\/p><cite>Google\u30c9\u30e9\u30a4\u30d6\u30d8\u30eb\u30d7\u30da\u30fc\u30b8<\/cite><\/blockquote>\n\n\n\n<p>\u3092\u691c\u7d22\u3057\u3066\u3082\u30d5\u30a1\u30a4\u30eb\u304c\u4e00\u3064\u3082\u5f15\u3063\u304b\u304b\u3089\u306a\u3044\u306e\u3067\u9069\u7528\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u306d\u3002<\/p>\n\n\n\n<p>\u307e\u3041\u3068\u306b\u304b\u304f\u3001<span class=\"swl-marker mark_orange\"><strong>\u30a2\u30af\u30bb\u30b9\u306b\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u304c\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308c\u3070getResourceKey\u30e1\u30bd\u30c3\u30c9\u3067\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u3092\u53d6\u5f97\u3067\u304d\u308b<\/strong><\/span>\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getResourceKey()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const IMAGE_ID = &quot;1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2&quot;; \/\/https:\/\/drive.google.com\/file\/d\/1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2\/view?usp=sharing\n\/\/\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetResourceKey() {\n  let file = DriveApp.getFileById(IMAGE_ID);\n  let resourceKey = file.getResourceKey();\n  console.log(resourceKey);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">IMAGE_ID&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30ebID<br>file&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30eb<br>resourceKey = \u30ea\u30bd\u30fc\u30b9\u30ad\u30fc<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u3001\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3082\u3057<span class=\"swl-marker mark_orange\"><strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u9069\u7528\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u304c\u5fc5\u8981\u306a\u3051\u308c\u3070null\u304c\u8fd4\u3055\u308c\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<h2 id=\"getSecurityUpdateEligible()\">getSecurityUpdateEligible()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u304b\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getSecurityUpdateEligible()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const IMAGE_ID = &quot;1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2&quot;; \/\/https:\/\/drive.google.com\/file\/d\/1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2\/view?usp=sharing\n\/\/\u30d5\u30a1\u30a4\u30eb\u304c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetSecurityUpdateEligible() {\n  let file = DriveApp.getFileById(IMAGE_ID);\n  let boolean = file.getSecurityUpdateEligible();\n  console.log(boolean);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">IMAGE_ID&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30ebID<br>file&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30eb<br>boolean = \u771f\u507d\u5024\uff08true \/ false\uff09<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><span class=\"swl-marker mark_orange\"><strong>\u9069\u7528\u3055\u308c\u3066\u3044\u308c\u3070TRUE<\/strong><\/span><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><strong><span class=\"swl-marker mark_blue\">\u9069\u7528\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070FALSE<\/span><\/strong><\/p>\n<\/div>\n<\/div>\n\n\n\n<p>\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"getSecurityUpdateEnabled()\">getSecurityUpdateEnabled()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>URL\u30a2\u30af\u30bb\u30b9\u6642\u306b\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u304c\u5fc5\u8981\u304b\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<p>\u79c1\u306e\u5834\u5408\u3001\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u304c\u5fc5\u8981\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u306bTRUE\u304c\u8fd4\u3055\u308c\u308b\u306e\u3067\u3001\u3061\u3083\u3093\u3068\u6a5f\u80fd\u3057\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\uff082022\u5e746\u6708\u73fe\u5728\uff09<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getSecurityUpdateEnabled()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const IMAGE_ID = &quot;1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2&quot;; \/\/https:\/\/drive.google.com\/file\/d\/1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2\/view?usp=sharing\n\/\/\u30d5\u30a1\u30a4\u30eb\u306bURL\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u3001\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u304c\u5fc5\u8981\u304b\u53d6\u5f97\nfunction sampleCodeForGetSecurityUpdateEnabled() {\n  let file = DriveApp.getFileById(IMAGE_ID);\n  let boolean = file.getSecurityUpdateEnabled();\n  console.log(boolean);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">IMAGE_ID&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30ebID<br>file&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30eb<br>boolean = \u771f\u507d\u5024<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">URL\u30a2\u30af\u30bb\u30b9\u6642\u306b\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u304c\u5fc5\u8981\u304b\u3069\u3046\u304b\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><span class=\"swl-marker mark_orange\"><strong>\u5fc5\u8981\u3067\u3042\u308c\u3070TRUE<\/strong><\/span><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><strong><span class=\"swl-marker mark_blue\">\u5fc5\u8981\u304c\u306a\u3051\u308c\u3070FALSE<\/span><\/strong><\/p>\n<\/div>\n<\/div>\n\n\n\n<p>\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"getSize()\">getSize()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u5bb9\u91cf\u3092\u30d0\u30a4\u30c8\u5358\u4f4d\u3067\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getSize()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const IMAGE_ID = &quot;1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2&quot;; \/\/https:\/\/drive.google.com\/file\/d\/1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2\/view?usp=sharing\n\/\/\u30d5\u30a1\u30a4\u30eb\u5bb9\u91cf\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetSize() {\n  let file = DriveApp.getFileById(IMAGE_ID);\n  let size = Math.round(file.getSize() \/ 1000) + &quot;KB&quot;;\n  console.log(size);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">IMAGE_ID&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30ebID<br>file&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30eb<br>size = \u30d5\u30a1\u30a4\u30eb\u5bb9\u91cf\uff08KB\u5358\u4f4d\uff09<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u30d5\u30a1\u30a4\u30eb\u5bb9\u91cf\u3092\u30d0\u30a4\u30c8\u5358\u4f4d\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5358\u4f4d\u3092\u5909\u66f4\u3057\u305f\u3051\u308c\u3070\u3001\u5272\u308a\u7b97\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular is-all-centered\"><table class=\"has-fixed-layout\"><thead><tr><th>\u5358\u4f4d<\/th><th>\u5272\u308b\u6570<\/th><\/tr><\/thead><tbody><tr><td>KB\uff08\u30ad\u30ed\u30d0\u30a4\u30c8\uff09<\/td><td>1000<\/td><\/tr><tr><td>MB\uff08\u30e1\u30ac\u30d0\u30a4\u30c8\uff09<\/td><td>1000000<\/td><\/tr><tr><td>GB\uff08\u30ae\u30ac\u30d0\u30a4\u30c8\uff09<\/td><td>1000000000<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u3001Math.round\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u56db\u6368\u4e94\u5165\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"getTargetId()\">getTargetId()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u5bfe\u8c61\u306e\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u304c\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u53c2\u7167\u5143\u306e\u30d5\u30a1\u30a4\u30ebID\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getTargetId()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const FOLDER_ID = &quot;1iWnUXfI8vl_6XHuKhCvH9abMQM7pVlDE&quot;; \/\/https:\/\/drive.google.com\/drive\/folders\/1iWnUXfI8vl_6XHuKhCvH9abMQM7pVlDE\n\/\/\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306e\u53c2\u7167\u5143\u30d5\u30a1\u30a4\u30ebID\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetTargetId() {\n  let folder = DriveApp.getFolderById(FOLDER_ID);\n  let files = folder.getFiles();\n  let targetId;\n  while (files.hasNext()) {\n    let file = files.next();\n    if (file.getMimeType() === &quot;application\/vnd.google-apps.shortcut&quot;) {\n      targetId = file.getTargetId();\n      break;\n    }\n  }\n  console.log(targetId);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">FOLDER_ID&nbsp;= \u30d5\u30a9\u30eb\u30c0ID<br>folder&nbsp;= \u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0<br>files = \u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb<br>file = \u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u5185\u306e1\u30d5\u30a1\u30a4\u30eb<br>targetId = \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u304c\u53c2\u7167\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30ebID<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408\u306f\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u81ea\u4f53\u306b\u3082\u56fa\u6709\u306e\u30d5\u30a1\u30a4\u30ebID\u306f\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u5b9f\u969b\u306e\u30d5\u30a1\u30a4\u30ebID\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u4f8b\u3048\u3070<span class=\"swl-marker mark_orange\"><strong>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u53c2\u7167\u3057\u3066\u3044\u308b\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3060\u3068\u3057\u3066\u3082SpreadsheetApp.openById\u306a\u3069\u3067\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u306eID\u3092\u6307\u5b9a\u3057\u3066\u3082\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093<\/strong><\/span>\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001\u53c2\u7167\u5143\u306e\u30d5\u30a1\u30a4\u30ebID\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>getTargetId\u30e1\u30bd\u30c3\u30c9\u306f\u305d\u3046\u3044\u3046\u6642\u306e\u305f\u3081\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center is-style-icon_info\"><span class=\"swl-marker mark_orange\"><strong>\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u614b\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u64cd\u4f5c\u3059\u308b\u5834\u5408\u306f\u53c2\u7167\u5143ID\u3092\u53d6\u5f97\u3059\u308b<\/strong><\/span><\/p>\n\n\n\n<h2 id=\"getTargetMimeType()\">getTargetMimeType()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u5bfe\u8c61\u306e\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u304c\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u53c2\u7167\u5143\u306eMIME\u30bf\u30a4\u30d7\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getTargetMimeType()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const FOLDER_ID = &quot;1iWnUXfI8vl_6XHuKhCvH9abMQM7pVlDE&quot;; \/\/https:\/\/drive.google.com\/drive\/folders\/1iWnUXfI8vl_6XHuKhCvH9abMQM7pVlDE\n\/\/\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306e\u53c2\u7167\u5143\u30d5\u30a1\u30a4\u30eb\u306eMIME\u30bf\u30a4\u30d7\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetTargetMimeType() {\n  let folder = DriveApp.getFolderById(FOLDER_ID);\n  let files = folder.getFiles();\n  let mimeType;\n  while (files.hasNext()) {\n    let file = files.next();\n    if (file.getMimeType() === &quot;application\/vnd.google-apps.shortcut&quot;) {\n      mimeType = file.getTargetMimeType();\n      break;\n    }\n  }\n  console.log(mimeType);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">FOLDER_ID&nbsp;= \u30d5\u30a9\u30eb\u30c0ID<br>folder&nbsp;= \u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0<br>files = \u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb<br>file = \u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u5185\u306e1\u30d5\u30a1\u30a4\u30eb<br>mimeType = \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u304c\u53c2\u7167\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306eMIME\u30bf\u30a4\u30d7<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u304c\u53c2\u7167\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306eMIME\u30bf\u30a4\u30d7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"getTargetResourceKey()\">getTargetResourceKey()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u5bfe\u8c61\u306e\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u304c\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u53c2\u7167\u5143\u306e\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getTargetResourceKey()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const FOLDER_ID = &quot;1iWnUXfI8vl_6XHuKhCvH9abMQM7pVlDE&quot;; \/\/https:\/\/drive.google.com\/drive\/folders\/1iWnUXfI8vl_6XHuKhCvH9abMQM7pVlDE\n\/\/\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u53c2\u7167\u5143\u30d5\u30a1\u30a4\u30eb\u306eMIME\u30bf\u30a4\u30d7\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetTargetResourceKey() {\n  let folder = DriveApp.getFolderById(FOLDER_ID);\n  let files = folder.getFiles();\n  let resourceKey;\n  while (files.hasNext()) {\n    let file = files.next();\n    if (file.getMimeType() === &quot;application\/vnd.google-apps.shortcut&quot;) {\n      resourceKey = file.getTargetResourceKey();\n      break;\n    }\n  }\n  console.log(resourceKey);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">FOLDER_ID&nbsp;= \u30d5\u30a9\u30eb\u30c0ID<br>folder&nbsp;= \u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0<br>files = \u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb<br>file = \u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u5185\u306e1\u30d5\u30a1\u30a4\u30eb<br>resourceKey = \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u304c\u53c2\u7167\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u5bfe\u8c61\u306e\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u304c\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u53c2\u7167\u5143\u306e\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30ea\u30bd\u30fc\u30b9\u30ad\u30fc\u304c\u5fc5\u8981\u306a\u3044\u5834\u5408\u306fnull\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"getThumbnail()\">getThumbnail()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u30c7\u30fc\u30bf\u3092Blob\u5f62\u5f0f\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getThumbnail()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const IMAGE_ID = &quot;1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2&quot;; \/\/https:\/\/drive.google.com\/file\/d\/1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2\/view?usp=sharing\n\/\/PNG\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetThumbnail() {\n  let file = DriveApp.getFileById(IMAGE_ID);\n  let fileName = file.getName();\n  let thumbnail = file.getThumbnail().setName(fileName);\n  let rootFolder = DriveApp.getRootFolder();\n  rootFolder.createFile(thumbnail);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">IMAGE_ID&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30ebID<br>file&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30eb<br>fileName = \u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u540d<br>thumbnail = \u30b5\u30e0\u30cd\u30a4\u30eb\u306eBlob\u30c7\u30fc\u30bf<br>rootFolder = \u30de\u30a4\u30c9\u30e9\u30a4\u30d6\u30d5\u30a9\u30eb\u30c0<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<br>\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u304c\u7121\u3044\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u306f\u3001null\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u4e0a\u9650\u306f\u6a2a1600px \u2715 \u7e26 900px<\/strong><\/span>\u3067\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u305d\u308c\u4ee5\u4e0a\u306e\u5927\u304d\u3055\u306e\u30b5\u30a4\u30ba\u306e\u5834\u5408\u306f\u3001\u81ea\u52d5\u7684\u306b\u4e0a\u9650\u306b\u53ce\u307e\u308b\u3088\u3046\u306b\u30ea\u30b5\u30a4\u30ba\u3055\u308c\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u5171\u6709URL\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9<\/p>\n\n\n\n<h2 id=\"getUrl()\">getUrl()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<p>\u5f15\u6570\u306e\u6307\u5b9a\u306a\u3057<\/p>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"getUrl()\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"Google Apps Script\"><code>const IMAGE_ID = &quot;1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2&quot;; \/\/https:\/\/drive.google.com\/file\/d\/1ABX5h7xUsQUziFbBMGV6mNdi_UDpxxR2\/view?usp=sharing\n\/\/\u30d5\u30a1\u30a4\u30eb\u306e\u5171\u6709URL\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\nfunction sampleCodeForGetUrl() {\n  let file = DriveApp.getFileById(IMAGE_ID);\n  let fileUrl = file.getUrl();\n  console.log(fileUrl);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">IMAGE_ID&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30ebID<br>file&nbsp;= \u753b\u50cf\u30d5\u30a1\u30a4\u30eb<br>fileUrl  = \u30d5\u30a1\u30a4\u30eb\u306e\u5171\u6709URL<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">\u30d5\u30a1\u30a4\u30eb\u306e\u5171\u6709\u30ea\u30f3\u30afURL\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5171\u6709URL\u306f\u300e<span class=\"swl-marker mark_orange\"><strong>https:\/\/drive.google.com\/file\/d\/{{FILE_ID}}\/view?usp=drivesdk<\/strong><\/span>\u300f\u3068\u3044\u3046\u5f62\u5f0f\u306eURL\u3067\u3059\u3002<\/p>\n\n\n\n<p><a href=\"#getDownloadUrl()\" data-type=\"internal\" data-id=\"#getDownloadUrl()\">getDownloadUrl<\/a>\u3067\u53d6\u5f97\u3067\u304d\u308bURL\u3068\u306e\u9055\u3044\u306f\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9URL\u306e\u5834\u5408\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u5171\u6709\u30ea\u30f3\u30afURL\u306e\u5834\u5408\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3092Google\u30c9\u30e9\u30a4\u30d6\u4e0a\u3067\u958b\u304f\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-video is-style-shadow\"><video autoplay controls src=\"https:\/\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/06\/Screen-recording-2022-06-17-10.57.17.webm\"><\/video><figcaption>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9URL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5834\u5408<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-video is-style-shadow\"><video autoplay controls src=\"https:\/\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/06\/Screen-recording-2022-06-17-10.58.00.webm\"><\/video><figcaption>\u5171\u6709\u30ea\u30f3\u30afURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5834\u5408<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2>\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u306f\u69d8\u3005\u306a\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5171\u6709\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u304b\u306a\u308a\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u3042\u308b\u8a18\u4e8b\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u305f\u3042\u3068\u306b\u3069\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u304b\u3001\u30a4\u30e1\u30fc\u30b8\u3092\u63b4\u3080\u3053\u3068\u306f\u3067\u304d\u305f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3054\u7d39\u4ecb\u3057\u305f\u30e1\u30bd\u30c3\u30c9\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u65e5\u3005\u306e\u696d\u52d9\u52b9\u7387\u306e\u6539\u5584\u306b\u5f79\u7acb\u3066\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001Google\u30c9\u30e9\u30a4\u30d6\u4e0a\u306b\u4fdd\u5b58\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u7d10\u3065\u304f\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3066\u304f\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u305f\u3042\u3068\u306b\u3001\u8272\u3005\u306a\u51e6\u7406\u306b\u3064\u306a\u3052\u308b\u305f\u3081\u306b\u306f\u3001\u3053\u306e\u8a18\u4e8b\u3067\u3054\u7d39\u4ecb\u3059\u308b\u65b9\u6cd5\u304c\u591a\u5206\u306b\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3141,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"{\"37092fa8\":{\"pv\":12087,\"imp\":5602,\"click\":13},\"7487365b\":{\"pv\":12087,\"imp\":5849,\"click\":5}}","spay_email":"","jetpack_publicize_message":"Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u95a2\u9023\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u8a18\u4e8b\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002\n\n\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n#GAS\n#GoogleAppsScript\n#DriveApp\n#Google\u30c9\u30e9\u30a4\u30d6\n#Google Drive","jetpack_is_tweetstorm":false},"categories":[7,80],"tags":[102,53,51,262,263,264,265,266,267,268,204,269,270,271,272,273,274,275,276,277,128,52,58,50,54],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/06\/how-to-get-info-from-folders-and-files-by-gas.png?fit=1200%2C675&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9Z92k-Om","jetpack_likes_enabled":true,"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/3122"}],"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=3122"}],"version-history":[{"count":16,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/3122\/revisions"}],"predecessor-version":[{"id":3156,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/3122\/revisions\/3156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/media\/3141"}],"wp:attachment":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/media?parent=3122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/categories?post=3122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/tags?post=3122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}