Script to Help Back-up Photoshop Settings
I created a script to help users back up their settings before updating or migrating to a new computer. There are other methods for this, including an Adobe script to migrate settings, however, when it comes to backing up one can't have too many backups!
My GitHub repo can be found here:
MarshySwamp/Backup-Photoshop-Settings
All it does is open up some tedius and "hard to find" folders for the user to copy data (presets, Actions Palette.psp file etc).
And here is the code:
/* Open Photoshop Presets & Settings Folders */
#target photoshop
app.bringToFront();
openPresetsAndSettingsFolders();
function noteOne() {
alert("This script will open 3 folders to facilitate backing up data before updating or migrating Photoshop.")
}
function noteTwo() {
alert("Script completed! Backup the following files and folders:" + "\r" + "\r" +
"* Actions Palette.psp file inside the User's Settings folder" + "\r" + "\r" +
"* All folders inside the Application's Presets folder" + "\r" + "\r" +
"* All folders inside the User's Presets folder")
}
function noteThree() {
alert("Note:" + "\r" + "In addition to backing up the Actions Palette.psp file, it is strongly recommended that each action set is saved to individual .atn action files!")
}
function openPresetsAndSettingsFolders() {
var os = $.os.toLowerCase().indexOf('mac') >= 0 ? "MAC" : "WINDOWS";
if (os === 'MAC') {
// alert("It's a Mac!");
noteOne();
noteTwo();
noteThree();
appSettings();
appPresets();
userPresets();
function appSettings() {
var appPath = app.path.fsName.replace(/^\/.+\//, '');
var userSettingsDir = '~/Library/Preferences/' + appPath + ' Settings';
var userSettingsDirOpen = Folder(userSettingsDir);
userSettingsDirOpen.execute();
}
function appPresets() {
var presetDir = app.path + '/Presets';
var presetDirOpen = Folder(presetDir);
presetDirOpen.execute();
}
function userPresets() {
var appPath = app.path.fsName.replace(/^\/.+\//, '');
var userPresetDir = '~/Library/Application Support/Adobe/' + appPath;
var userPresetDirOpen = Folder(userPresetDir);
userPresetDirOpen.execute();
}
} else {
// alert("It's Windows!");
noteOne();
noteTwo();
noteThree();
appSettings();
appPresets();
userPresets();
function appSettings() {
var appPath = app.path.fsName.replace(/^.+\\/, '');
var userSettingsDir = '~/appData/Roaming/Adobe/' + appPath + '/' + appPath + ' Settings';
var userSettingsDirOpen = Folder(userSettingsDir);
userSettingsDirOpen.execute();
}
function appPresets() {
var presetDir = app.path + '/Presets';
var presetDirOpen = Folder(presetDir);
presetDirOpen.execute();
}
function userPresets() {
var appPath = app.path.fsName.replace(/^.+\\/, '');
var userPresetDir = '~/appData/Roaming/Adobe/' + appPath + '/Presets';
var userPresetDirOpen = Folder(userPresetDir);
userPresetDirOpen.execute();
}
}
}
If this script saves at least one person from losing their custom actions or other presets, then I'm happy!
Tested on Mac CC 2018 + CC 2019 and Win CC 2020 + Win CC 2021.

