Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Create a text file
- function example11() {
- DriveApp.createFile("EXAMPLE 11 FILE", "This is a new file");
- }
- //Create a PDF
- function example12() {
- DriveApp.createFile("EXAMPLE 12 PDF FILE",
- "This is a new PDF file", MimeType.PDF);
- }
- //Create a new folder
- function example13() {
- DriveApp.createFolder("EXAMPLE 13 FOLDER");
- }
- //Create PDF with HTML
- function example14() {
- DriveApp.createFile("EXAMPLE 14 HTML PDF FILE",
- "<h1>This is a new <em>PDF</em> file</h1>",
- MimeType.PDF);
- }
- //Create multiple PDF files
- function example15() {
- for(d=1;d<6;d+1){
- DriveApp.createFile("EXAMPLE 15 PDF FILE "+d,
- "This is file number "+d, MimeType.PDF);
- }
- }
- //Create multiple folders
- function example16() {
- for(f=1;f<6;f++){
- DriveApp.createFolder("EXAMPLE 16 FOLDER NUMBER "+f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement