Assume your images stored in a same director, like sliedshow-images/folder1/image1.jpg ....
I create a script to generate .sscctl file includes one Title option from image file name

#! /bin/sh

for IMG in */* 
do
	if [ "${IMG##*.}" = "jpg" ] || [ "${IMG##*.}" = "png" ] || [ "${IMG##*.}" = "JPG" ] || [ "${IMG##*.}" = "PNG" ] ; then
		echo "Create CTL file for" $IMG;	
		pName=${IMG%.*};
		nName=$pName".sscctl";
		f=`basename "$IMG"`;
		t=${f%.*};
		echo "Title:" $t > "$nName";
	fi
done

Comments

rhouse’s picture

Hi 0000sir, Thanks, that might be a helpful starting point for those who wish to give their files "title-y" names. It still relies on titles being in alphabetical order, I think, but it will be helpful for others to roll their own generator. Cheers.

rhouse’s picture

Status: Active » Closed (works as designed)