Skip to main content
frontend89
Participant
November 26, 2015
Answered

Open file in Camera Raw - Manual Batch

  • November 26, 2015
  • 2 replies
  • 719 views

Hi

I found http://www.ps-bridge-scripts.talktalk.net/ - PSCS Script - Manual Batch.

It is very good solution for me becouse I can load folder with images, play other photoshop action and brush, retouch photos etc.

But I have one problem becouse this script don't open RAW file in Camera Raw.

Do you know what I need to add code to open files in Camera Raw ?

When I later open Filter  -> Camera Raw Filter I don't have orginal settings from my camera , this is not for me .

Best Regards

This topic has been closed for replies.
Correct answer SuperMerlin

var file = File.openDialog("Please select RAW file"); 

OpenCameraRaw( file,true ); 

function OpenCameraRaw(file,ACR) {

  var desc = new ActionDescriptor();

  desc.putPath(charIDToTypeID('null'), File(file)); 

  desc.putBoolean(stringIDToTypeID('overrideOpen'), true);

  try{

  if(ACR){ executeAction(charIDToTypeID('Opn '), desc, DialogModes.ALL);

  }else{ executeAction(charIDToTypeID('Opn '), desc, DialogModes.NO);

  } }catch(e){}

};

2 replies

JJMack
Community Expert
Community Expert
November 26, 2015

I think only when a smart object layer object is a Image file that is Opened via Camera Raw would you have the Old ACR settings for the layer. Or if a smart object layer has a Camera Raw Smart Filter would you have the old ACR settings.  If ACR is used on a raster layer it would change the layers pixels  a permeate change  the original pixels will not longer exist anywhere.  With With Smart Object Layers, Object Files and Smart Object layer the original Pixels still exist for the actual pixels Photoshop renders for the layer exists and are not changed the ACR setting used are recorded for the smart object layer in the documents layer.

If you reopen a smart object you Open a temp Files in ACR chances you commit will be recorded into the original smart object layer and the object layers pixels replaced for the smart layer.   You may need to use action manager code to be able to reopen a smart object layer or re-adjust a smart filter.  It may also need to be a interactive process. I would not think you can pass ACR a new set of settings like a new SaveFileOptions object.

I could well be wrong for  I only hack at Photoshop scripting

JJMack
Chuck Uebele
Community Expert
Community Expert
November 26, 2015

As far as I know, it isn't possible to open in Camera Raw.

SuperMerlin
SuperMerlinCorrect answer
Inspiring
November 26, 2015

var file = File.openDialog("Please select RAW file"); 

OpenCameraRaw( file,true ); 

function OpenCameraRaw(file,ACR) {

  var desc = new ActionDescriptor();

  desc.putPath(charIDToTypeID('null'), File(file)); 

  desc.putBoolean(stringIDToTypeID('overrideOpen'), true);

  try{

  if(ACR){ executeAction(charIDToTypeID('Opn '), desc, DialogModes.ALL);

  }else{ executeAction(charIDToTypeID('Opn '), desc, DialogModes.NO);

  } }catch(e){}

};

frontend89
Participant
November 26, 2015

Thanks !

I added this function to a script and change open function. Working fine !