For future reference, this script will do the job.
[code]#target photoshop app.bringToFront();
main();
function main(){
if(!documents.length) return;
//amend to suit
var folderPath = Folder("/c/folderName");
if(!folderPath.exists) {
alert("Output folder does not exist!");
return;
}
//this should be the first part of the filename
//I.E. if file name = Picture0001.tif it needs to be Picture
//N.B. it must be the same case!
var fileName = "filename";
var fileType = "tif";
var fileList = new Array();
var newNumber=0;
var saveFile='';
fileList = folderPath.getFiles((fileName + "*." + fileType));
fileList.sort().reverse();
if(fileList.length == 0){
saveFile=File(folderPath + "/" + fileName + "0001." +fileType);
SaveTIFF(saveFile);
}else{
newNumber = Number(fileList[0].toString().replace(/\....$/,'').match(/\d+$/)) +1;
saveFile=File(folderPath + "/" + fileName + zeroPad(newNumber, 4) + "." +fileType);
SaveTIFF(saveFile);
}
};
function zeroPad(n, s) {
n = n.toString();
while (n.length < s) n = '0' + n;
return n;
};
function SaveTIFF(saveFile){
tiffSaveOptions = new TiffSaveOptions();
tiffSaveOptions.embedColorProfile = true;
tiffSaveOptions.alphaChannels = true;
tiffSaveOptions.layers = true;
tiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW;
activeDocument.saveAs(saveFile, tiffSaveOptions, true, Extension.LOWERCASE);
}; [/code]
Found here;
https://forums.adobe.com/thread/1191107?tstart=0
Now, if only there was a way to keyboard shortcut a script!