Adobe 12040118 Using Help - Page 189
Now we're ready to render. Once rendering is complete
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 189 highlights
Help Using Help Examples Back 189 eval( email_setupfile.read() ); email_setupfile.close(); } var myQueue = app.project.renderQueue //creates a shortcut for RQ Now we're ready to render. Once rendering is complete, the script creates a text string for the email message that contains the start time of the render, the render time of each item in the queue, and the total render time. myQueue.render(); var projectName = "Unsaved Project"; if (app.project.file) { projectName = app.project.file.name; } var myMessage = "Rendering of " + projectName + " is complete.\n\n"; Now email the message, using the three settings from the email_methods.jsx script that has been automatically run to prompt the user for the server, above. if ( !settings.haveSetting("Email Settings", "Mail Server") || !settings.haveSetting("Email Settings", "Reply-to Address") || !settings.haveSetting("Email Settings", "Render Report Recipient")){ alert("Can't send an email, I don't have all the settings I need. Aborting."); } else { // Load code from a file with handy emailing methods: var emailCodeFile = new File("email_methods.jsx"); emailCodeFile.open("r"); eval( emailCodeFile.read() ); emailCodeFile.close(); Finally, we send an error if for any reason we are unable to send the mail. var serverSetting = settings.getSetting("Email Settings", "Mail Server"); var fromSetting = settings.getSetting("Email Settings", "Replyto Address"); var toSetting = settings.getSetting("Email Settings", "Render Report Recipient"); var myMail = new EmailSocket(serverSetting); if (! myMail.send (fromSetting, toSetting, "AE Render Completed", myMessage) ) { alert("Sending mail failed"); } } } } Using Help Back 189