Created
February 27, 2015 20:34
-
-
Save adamcoulombe/ae804c3ddc99ce1127f0 to your computer and use it in GitHub Desktop.
Photoshop Script: Update all Linked Smart Objects in a Folder of PSD files
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 folderPath = "/c/Users/Adam/Projects/myproject" | |
//var inputFolder = Folder.selectDialog ("Select the folder that contains the files for export:"); | |
var inputFolder = Folder(folderPath); | |
var files = inputFolder.getFiles (/\.(psd)$/i); | |
for (var i = 0; i < files.length; i++) { | |
var f = files[i]; | |
var doc = app.open (f); | |
try{ | |
var desc = new ActionDescriptor(); | |
executeAction( app.stringIDToTypeID('placedLayerUpdateAllModified'), desc, DialogModes.NO ); | |
} catch(e) {} | |
doc.save (); | |
doc.close (); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment