This file contains 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
var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, epsSaveOpts, doc; | |
sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator files you want to convert to png', '~' ); | |
if ( sourceFolder != null ) | |
{ | |
files = new Array(); | |
fileType = "*.ai"; | |
This file contains 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
// Global Variables to use. | |
var destFolder, sourceFolder, files, fileType, sourceDoc, svgSaveOpts, doc, layers; | |
// The folder where all of the Illustrator files are. | |
sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator files you want to convert to SVG', '~' ); | |
// Function that sets up the exporting process | |
function init(){ | |
// Check to see if sourceFolder has any files in it |
This file contains 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 hideAllLayers(){ | |
// Loop through doc layers and turn them off | |
for(var l = 0; l < doc.layers.length; l++){ | |
doc.layers[l].visible = false; | |
} | |
} |
This file contains 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
// Work horse for exporting layers | |
function exportLayers(){ | |
for(var e = 0; e< doc.layers.length; e++){ | |
// Set the selected layer on | |
doc.layers[e].visible = true; | |
// Store layername | |
var layerName = doc.layers[e].name; | |
// Function returns a new file name |
This file contains 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 getNewName(layerName){ | |
// Local Variables | |
var docName; | |
// Set docName to the source doc name | |
docName = sourceDoc.name; | |
// Set newName to empty string | |
var newName = ""; |
This file contains 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 getSVGOptions(){ | |
var exportOpts = new ExportOptionsSVG(); | |
return exportOpts; | |
} |
This file contains 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
npm install -g firebase-tools |
This file contains 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
const functions = require("firebase-functions"); | |
const nodemailer = require("nodemailer"); | |
const axios = require("axios"); | |
const moment = require("moment"); | |
const momentTZ = require("moment-timezone"); | |
// // Create and Deploy Your First Cloud Functions | |
// // https://firebase.google.com/docs/functions/write-firebase-functions | |
// |
This file contains 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
exports.sendEmail = functions.pubsub | |
.schedule("every monday, tuesday, wednesday, thursday, friday 06:45") | |
.timeZone("America/Chicago") | |
.onRun(async context => { | |
}) |
This file contains 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
const now = moment().format("YYYYMMDD"); | |
const mailList = [ | |
"yourEmailAddress@gmail.com" | |
]; | |
const transporter = nodemailer.createTransport({ | |
service: "gmail", | |
auth: { | |
user: "********", | |
pass: "********" | |
} |
OlderNewer