Skip to main content
Zaximus
Known Participant
December 10, 2023
Question

Batch Document Names from Smart Object

  • December 10, 2023
  • 1 reply
  • 158 views

Doing some mockups and I have created a simple action that replaces a smart object then saves a copy as a PNG. I would like to Batch this action, however, I need to name the output file with the same name as the Smart Object that replaced it.

Example:

  • I have 3 Smart Objects in a folder, 'John Profile.tiff', 'Jane Profile.tiff', and 'Zack Profile.tiff'
  • The batch Action replaces a smart object with each of those smart objects
  • The batch Action should name the output 'John Profile.jpg', 'Jane Profile.jpg', and 'Zack Profile.jpg'

 

The only options I see for File Naming have to do with the Document Name.

This topic has been closed for replies.

1 reply

Stephen Marsh
Community Expert
Community Expert
December 10, 2023

@Zaximus 

 

You will need to use a script to capture the replacement image name and then the script can do one of the following three things:

 

1) Save to a specific file format/options and location using the captured file name

 

or

 

2) Duplicate the current document using the captured file name, then the batch action can save using this name 

 

or

 

3) The script can save the file to disk as is with the incorrect name, then the script can rename the file on disk to the captured file name


P.S. posting a screenshot of the template PSD layer panel and also the edited smart object layer panel would help to understand your layer structure... Or attach the PSD template.