If you defined Patterns in Photoshop and never used the Patterns Palette to export them into .pat files they were only in your Users ID Photoshop Preference file "Patterns.psp". Have you ever backup your Photoshop Preferences. If you have you can recover your pattern from the backup copy of "Patterns.psp"
I backup my Photoshop version Preferences every now and than using a photoshop script I wrote. I can have Dated backup version of my preferences. "BackupPhotoshopPreferences.jsx"
Adobe added more to preferences so I changed to use the Xcopy for backing up Windows Photoshop version user preferences..
var makeFolder = new Folder('~/Desktop/PsPreferences');
makeFolder.create(); // make sure the folder
var makeFolder = new Folder(makeFolder + "/" + app.version);
makeFolder.create(); // make sure the folder
var now = timeStamp();
var makeFolder = new Folder(makeFolder + "/" + now );
makeFolder.create(); // make sure the folder
var Preferences = new Folder(app.preferencesFolder);
var current = convertPath(Preferences);
var backup = convertPath(makeFolder);
//alert('Copy "' + current + '" "' + backup + '"');
var batch_file = new File(Folder.temp + "/CpyPsPref.bat");
batch_file.open("w");
batch_file.write('XCopy "' + current + '" "' + backup + '" /E');
batch_file.close;
batch_file.execute();
alert("PS " + app.version + " Preferences " + now);
function convertPath(location) {
str = String(location);
if (str.indexOf("~") != -1 ) str = str.substr(str.indexOf("~") + 1 ,);
while (str.indexOf("%20") != -1 ) {
before = str.substr(0, str.indexOf("%20")) + " ";
after = str.substr(str.indexOf("%20") + 3 ,);
str = before + after;
}
var path = "c:\\Users\\" +$.getenv("username");
while (str.indexOf("/") != -1 ) {
path = path + str.substr(0, str.indexOf("/")) + "\\";
str = str.substr(str.indexOf("/") + 1 ,);
}
return path + str;
}
function timeStamp(){
// Get the time and format it
var digital = new Date();
var hours = digital.getHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm = "AM";
if (hours > 11) amOrPm = "PM";
if (hours > 12) hours = hours - 12;
if (hours == 0) hours = 12;
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
// Get the date and format it
var date = new Date();
var d = date.getDate();
var day = (d < 10) ? '0' + d : d;
var m = date.getMonth() + 1;
var month = (m < 10) ? '0' + m : m;
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;
// create a variable with the fully formatted the time and date
// todaysDate = hours + ":" + minutes + ":" + seconds + " " + amOrPm + " - " + day + "/" + month + "/" + year;
// todaysDate = hours + ":" + minutes + ":" + seconds + " " + amOrPm + " - " + month + "/" + day + "/" + year;
MonthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
todaysDate = hours + "-" + minutes + "-" + seconds + " " + amOrPm + " " + MonthNames[date.getMonth()] + " " + date.getDate() + ", " + year;
return todaysDate;
}