(fileId)
| 54 | } |
| 55 | |
| 56 | function fileIdIsValid(fileId) { |
| 57 | if(fileId.charAt(0).toLowerCase() === 'm') { |
| 58 | console.log('\nScript file ID error.'.red + '\n' + |
| 59 | 'It looks like you are passing in a Project Key, from "File --> Project properties",' + |
| 60 | 'rather than a Drive File ID.\nYou will find the Drive File ID in the script\'s URL:\n' + |
| 61 | 'https://script.google.com/a/google.com/d/' + '__DRIVE_FILE_ID__'.green + '/edit.\n'); |
| 62 | return false; |
| 63 | } else { |
| 64 | return true; |
| 65 | } |
| 66 | } |