Hello, what I would like is a script to allow me to select files to join and then run them in the order I select them through mencoder to join them. I have hacked together a script using pieces of other scripts I have found but it probably is not very efficient or the best way to do it. The other thing is my script doesn't seem to work if there are spaces in the path to any of the files. Here is my hacked up script. Maybe someone could suggest changes or just write up a new one real quick. I am not sure if I needed the filetype prompt but I figured just in case I would put it in. Thank you.
Code:
#! /bin/bash
LIMIT=`zenity --entry --text="" --title="How Many Files?"`
a=0
while [ $a -lt "$LIMIT" ]
do
a=$(($a+1))
FILE=`zenity --file-selection --title="Select File Number "$a""`
echo "$FILE" >> /home/anthony/Desktop/testing
done
output_type=`zenity --title="What File Type?" --list --separator=" " --column="Output to..." "avi" "mpeg"`
szSavePath=`zenity --file-selection --title="Save As" --save --confirm-overwrite`
mencoder -oac copy -ovc copy $(cat /home/anthony/Desktop/testing) -of $output_type -o "$szSavePath" | (zenity --progress --pulsate --text="Joining" --auto-close )
zenity --info --title="" --text="Finished