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
function getYAML() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var dest = DocumentApp.openById(PropertiesService.getScriptProperties().getProperty("output_document_id")); | |
var key = Browser.inputBox("Please enter the key of the Google Spreadsheet containing the content to be generated as a YAML file."); | |
var source = SpreadsheetApp.openById(key); | |
var output = "---\nen:\n"; | |
var sheets = source.getSheets(); | |
for (var i = 0; i < sheets.length; i++) { |