copy-jalbum-settings

jAlbum with the skin Tiger has more than 300 parameters in the project file with the default name "jalbum-settings.jap". I did not manage to keep settings consistent over my currently 9 albums.

jAlbum has the feature to import project settings, see jAlbum help page. Unfortunately it's not clear for me whether all settings are copied or which ones are.
Therefore I created a program to copy all the setting with the exception of a blacklist. The default blacklist contains these variables:
  • accountProfileName=
  • style=
  • remoteDirectory=
  • directory=
  • homepageAddress=
  • albumAddress=
  • projectFile=
Without the equal sign (=) at the end of the setting other settings might also match unintentionally. You may select your own blacklist by providing a file to the tool.

Usage: copy-jalbum-settings.sh settings-file-to-be-modified settings-file-with-the-correct-settings [file with settings that shall not be copied]
Example: copy-jalbum-settings.sh MyAlbums/malamute.photos/jalbum-settings.jap MyAlbums/doh.photos/jalbum-settings.jap

A backup is made from the project file before it is modified (jalbum-settings.jap.previous-settings). When this script is run for the second time, then the file with the previous settings contains the settings after the first run.

This program has been developed and used by the author under the Linux distribution OpenSUSE tumbleweed.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Download link.

I will collate these 8 calls of this tool in one shell script to simplify the harmonization of my 9 albums. May be I will then put this shell script in "/etc/cron.weekly" which would then automatically run the harmonization once a week as soon as I start my computer.