Skip to main content
Participating Frequently
December 24, 2008
Question

Unwanted behavior

  • December 24, 2008
  • 4 replies
  • 660 views
Hi everyone

Whenever I open a RAW file as a smart object (in order to embed it into a PSD file), the newly created file gets a string as Smart Object-1 appended to its original name. For example _MG_2560.dng becomes _MG_2560 as Smart Object-1.psd. Is there way to prevent this from occurring, or perhaps create an action that would remove this string post-mortem?

I thought of batch rename, but that could work only if the file names had consecutive numbers. I often process about 30 or so files out of few hundred this way, and Id like to keep the original names.

Any takes?

Thanks!

-iVan
This topic has been closed for replies.

4 replies

Paul Riggott
Inspiring
December 25, 2008
when the global is ticked, it will remove/replace if it finds the same critera more than once in the filename.
Merry Christmas to you too.
_iVan_B__Author
Participating Frequently
December 25, 2008
You da man, Paul! Your Rename Replace utility works like a charm. What is a Global checkbox for, btw?

-iVan

P.S. It was too late when I realized I posted my question in scripting forum instead of the other one, but you certainly came to my rescue. Thanks for a nice Christmas surprise!
Paul Riggott
Inspiring
December 24, 2008
Another way would be to use this script using Script Event Manager on open event.



var doc = app.activeDocument;

if(doc.name.match(/ as Smart Object-1/)){

var newName= activeDocument.name.replace(" as Smart Object-1",'');

var newDoc = doc.duplicate(newName);

doc.close(SaveOptions.DONOTSAVECHANGES);

app.activeDocument = newDoc;

}

Paul Riggott
Inspiring
December 24, 2008
You could remove that string in Bridge with my re-namer
http://www.ps-scripts.com/bb/viewtopic.php?t=2366