Photoshop JSX script open file picture issue
Hi,
I have created a jsx script to bulk revise pictures in a particular folder by using the openfile function I'm able to open each file from the directory. The problem is when running the script from Photoshop there is a warning message that keeps showing up on pictures that have a different color profile assigned to it which triggers the "The embedded ICC profile cannot be used because the ICC profile is invalid" message. I can manually click continue to continue but how can i have the script just ignore the messsage and continue opening the file as is by automatically ignoring the profile message.
// Set Adobe Photoshop CC to use pixels and display no dialogs
app.preferences.rulerUnits = Units.PIXELS
app.preferences.typeUnits = TypeUnits.PIXELS
app.displayDialogs = DialogModes.ERROR
// Open and Get All Files in the Folder var imageFolder = Folder ("/Users/Cricket/Desktop/Converter/Original/") var fileList = imageFolder.getFiles()
// Open each file for( var i = 0; i < fileList.length; i++ ) {
if( fileList[i] == imageFolder + "/.DS_Store" )
{ }
else {
// Create a document var docImage = app.documents.add ( 800, 580 )
if( fileList[i] instanceof File ) {
open( fileList[i] )
Any help is appreciated it.
