Palette is an application that enables backing up and restoring your color data for the ColorSnapper application for Mac OS. The application is written entirely in bash and has a few extra features.
I use the macOS application ColorSnapper2 excessively when I am developing. The application is great, but I wish it had some features to manage the data stored in ColorSnapper2, so I wrote this script and turned it into sort of a pseudo-application. I don't think it likely serves much of a purpose in the present day, and it may not even properly work with new version of macOS. I wrote this around 2020 on macOS 11, and I am publishing the work for anyone that might find this useful. I am very tempted to rewrite this application, but it serves no real purpose any longer.
Backup the colors & favorites saved in ColorSnapper2.
Data can be backed up locally & to cloud services.
Useful for backing up ColorSnapper2 data from multiple computers
Save groups of colors for individual projects & restore them when needed
Clear the data stored in ColorSnapper & start fresh
Take your colors with you between computers if you're working on projects across different machines.
Upon first launch, you'll be shown a short introduction on the purpose of the Palette application.
After the introduction, you'll be taken to the initial setup menu. This is where you'll tell Palette where to store your .palette files. You can choose to store the files locally, using a cloud service such as iCloud, or both locally and using a cloud service.
The application will ask if you want Palette to handle where the files will be stored or if you want to choose the location where your palette data is stored.
Creates a dated backup of all the colors & favorites marked in ColorSnapper2. This also allows you to add a note to the backup if you would like to remember specific information about the backup you are creating.
Displays a dated list of backups that have been created using the Backup ColorSnapper Data option and allows you to restore data from a chosen specific date.
Once a date is selected, any notes stored in the file will be displayed, and you will confirm if this is the backup you would like to restore. When the action is confirmed the data in ColorSnapper is cleared and then the data from the backup is written to ColorSnapper.
Wipes all the stored colors from Colorsnapper to start with a clean palette.
ColorSnapper will have no colors saved after you use the Clear ColorSnapper option
Saves the colors marked as favorites as a palette file that can be loaded and restored at any time. The application will prompt you to name your color palette file.
You might find this useful for loading colors for a specific project you are working on or when switching projects.
Loads the color data from a specified palette file that was created using the Create Color Palette option.
The option will display a list of your saved palette files to choose from.
The color data currently in ColorSnapper will be wiped and the color data from the palette file will be loaded. The colors will replace the loaded data.
This example shows 10 colors in ColorSnapper
5 of those colors are marked as favorites indicated by the yellow star in the corner of the color
Saving a palette using the Save Color Palette option will create a palette file consisting of the 5 colors that are marked as favorites
Loading the palette using the Load Color Palette the color data in ColorSnapper is replaced with the 5 colors marked as favorites in the previous photo
Displays a list of your saved palette files.
Palette will generate an SVG file containing a preview of the selecting palette file, so you can view the colors that are saved in the selected palette before loading the data into ColorSnapper
The option will list your saved palette files to choose from
The Manage menu option gives access to manage your palette files.
Sync ColorSnapper combines the data that is currently in ColorSnapper2 with your most current backup created. This option only works if you setup to store your palette data using cloud storage, or a combination of both local and cloud storage.
This option is meant to sync ColorSnapper data across computers if you use ColorSnapper & develop across computers.
All duplicate colors will be removed.
Combine Files combines the colors loaded into ColorSnapper with the palette file you select removing any duplicate colors in the process.
When loading a palette file using the normal Load Palette, the color data will first be cleared from ColorSnapper. Using the Combine Files menu option will keep the color data in ColorSnapper & load the colors saved in a palette file.
Imports a palette file into your palette storage.
Exports a palette file from your default storage to a location of your choosing.
Allows management of your palette data.
Displays a help menu explaining each menu option.
Allows the change of where your Palette data is being saved.
A help menu that displays the documentation for the application
Exits the application & quits the Terminal