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
// Replace SmartObject’s Content and Save as JPG | |
// 2017, use it at your own risk | |
// Via @Circle B: https://graphicdesign.stackexchange.com/questions/92796/replacing-a-smart-object-in-bulk-with-photoshops-variable-data-or-scripts/93359 | |
// JPG code from here: https://forums.adobe.com/thread/737789 | |
#target photoshop | |
if (app.documents.length > 0) { | |
var myDocument = app.activeDocument; | |
var theName = myDocument.name.match(/(.*)\.[^\.]+$/)[1]; | |
var thePath = myDocument.path; |
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
// Export Ratioed Images (Tested on CS5) | |
// Written by Beau August 2016. | |
// DESCRIPTION: | |
// This script will hunt through second-level nested groups, looking for those that have a ratio for a name | |
// * A new folder will be created on the Desktop to house the images | |
// * It will duplicate each ratio-named group to a new document | |
// * It will do a "Reveal all" on the new document to make sure that the image will be trimmed correctly | |
// * The transparent pixels will then be trimmed | |
// * The file is saved to the Desktop folder at max quality in JPEG format. |