マガジンのカバー画像

【プログラムを学ぼう】GoogleAppsScript入門

134
GoogleAppsScriptの使い方をいろいろお伝えしていきます! GASを使って業務の効率化などを目指す人用!またはプログラミングの初歩の初歩を学びたい人は必見になります。
運営しているクリエイター

2022年11月の記事一覧

【GoogleAppsScript】Googleドライブにあるすべてのファイルを取得【getFiles()】

getFiles() でGoogleドライブ内にあるすべてのファイルのコレクションを取得します。 今回の…

関野泰宏
1年前
1

【GoogleAppsScript】GoogleドライブのファイルIDを取得します【getFileById(id)】

getFileById(id) でGoogleドライブの指定された ID のファイルを取得します 今回のプログラム…

関野泰宏
1年前
1

【GoogleAppsScript】Googleドライブにショートカット作成【createShortcut】

createShortcut(targetId) でGoogleドライブのルート部分にショートカットを作成するメソッド…

関野泰宏
1年前
4

【GoogleAppsScript】Googleドライブのルートにフォルダを作成【createFolder】

createFolder(name) でGoogleドライブのルート部分に指定した名前でフォルダを作成します。 …

関野泰宏
1年前
2

【GoogleAppsScript】GoogleドライブにMIMEタイプファイルを作成【createFile】

createFile(name, content, mimeType) でGoogleドライブにテキストファイルを作成する MIMEタ…

関野泰宏
1年前
3

【GoogleAppsScript】Googleドライブにテキストファイルを作成【createFile】

createFile(name, content) でGoogleドライブにテキストファイルを作成する 今回のプログラム…

関野泰宏
1年前

【GoogleAppsScript】Googleドライブの一覧を取得する

getName でGoogleドライブの名前を取得する 今回のプログラム プログラム説明Googleドライブのファイル一覧を取得します。 hasNext でファイル一覧の最後までループをさせ getName()でGoogleドライブの名前を取得しLoggerで実行ログに表示していきます。 サンプルプログラムfunction myFunction() { var files = DriveApp.getFiles(); while (files.hasNext())

【GoogleAppsScript】ドキュメントに改ページを挿入します【insertPageBreak(childInd…

insertPageBreak(childIndex) は、ドキュメントの任意の場所に改ページを挿入します。 今回…

関野泰宏
1年前
1

【GoogleAppsScript】ドキュメントに段落を挿入します【insertListItem(childIndex, l…

insertListItem(childIndex, listItem) は、ドキュメント任意の行に段落文を挿入します。 今…

関野泰宏
1年前

【GoogleAppsScript】ドキュメントに画像を挿入します【insertImage(childIndex, imag…

insertImage(childIndex, image) は、ドキュメント任意の行に画像を挿入します。 今回のプロ…

関野泰宏
1年前
2

【GoogleAppsScript】ドキュメントに罫線を挿入【insertHorizontalRule(childIndex)】

insertHorizontalRule(childIndex) は、ドキュメントに指定されたインデックスに新しい罫線を…

関野泰宏
1年前
1

【GoogleAppsScript】要素の ElementType を取得します【getType() 】

getType() は、各要素のタイプを取得します。 図、表、段落などいろんな要素があるので判定す…

関野泰宏
1年前

【GoogleAppsScript】テキストの配置を設定します【setTextAlignment(textAlignment)…

setTextAlignment(textAlignment) は、ドキュメントのテキストの配置を設定します。 textAli…

関野泰宏
1年前