Last active
July 18, 2020 18:15
-
-
Save kaitas/de8c74d7389dd59267076b68f97d469a to your computer and use it in GitHub Desktop.
Google Slidesで先頭のスライドをコピーして日付タイトルなスライドを複製で新規追加(日報に便利)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 最近 Google Slides でも直接スクリプト機能が使えますので、権限があるユーザで「ツール」→「スクリプトエディタ」にて以下のコードを張り付けて実行すれば、 | |
| // 先頭のスライドがコピーされて、新しい日付タイトルのスライドが出来上がります。日報に便利ですので時刻指定で実行すればよきかと。 | |
| // メニューを作ってもいいですね。 | |
| function AddNewSlideToday() { | |
| var Sl = SlidesApp.getActivePresentation(); | |
| var Today = Sl.getSlides()[0].duplicate(); | |
| Today.getShapes()[0].getText().setText(Utilities.formatDate(new Date, "JST", "[yyyyMMdd]")); | |
| Today.move(0); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment