Jump to content
Copper Star Media

AP or AD - Batch Export Same Photo Multiple File Names?

Recommended Posts

UPDATE: I figured out how to do multiple file names. Only problem is they have to be done individually which is quite time consuming. I need to know if there is a way to import a list of file names that would allow it to be more automated.

 

I did search to see if I could find the answer to this. It might not be possible but I'm hoping it is. I have both photo and designer but I'm more familiar with photo.

I need to export the SAME image into multiple file names. They all need to be the same format (.jpg). For example...photo1.jpg, photo2.jpg.

I have the file names set up so that I can copy/paste them or even import them if there is a way to do that so that when the batch processes it would automatically assign the new file name.

 

Share this post


Link to post
Share on other sites

Well it's laborious possible in both via the Export Persona and using slices for a JPG file there then as "1x Slicename1", "1x Slicename2", "1x Slicename3" ... 

But honestly since that's always one and the same file/image with a different file naming and thus a boring task, I would let the operating system do this tedious/repeatedly work from a batch/shell script as a copy file operation in a given loop iteration count, where the loop count is added to the file name. - So something like ...

Quote

// Powershell

for ($i=1; $i -le 10; $i++)
{
   Copy-Item "\\tmp\photo.jpg" -Destination "\\tmp\photo$i.jpg"
}
 

On a Mac a shell script will do the same (a loop for 10 file copies here) ...

Quote

#!/bin/bash
for i in `seq 1 10`;
do
        echo $i
        cp -v "photo.jpg" "photo$i.jpg"
done   

... or instead via a while loop count ...

Quote

#!/bin/bash
 COUNTER=0
 while [ $COUNTER -lt 10 ]; do
     echo The counter is $COUNTER
     let COUNTER=COUNTER+1
     cp -v "photo.jpg" "photo$COUNTER.jpg"
 done

 


☛ Affinity Designer 1.7.1 ◆ Affinity Photo 1.7.1 ◆ OSX El Capitan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×