Auf Kommentar antworten

Very simple versioning script

I just got an email telling me that this very very old script of mine stopped working under CS5

The script automatically creates a backup copy of the current document while saving. Apply cmd-S as shortcut for the script and you won't notice it is there.

The new version of "save_with_backup" is now a JavaScript (i.e. works on PC as well as on Mac) with a few minor improvements.

Configuration

Before using the script you need to adjust three lines in the code to point to your preferred backup-location.

  1. var desktop_path = Folder.desktop.toString();
  2. // var backup_path = "/someFolder/someSubfolder/backupLocation";
  3. var backup_path = desktop_path+"/backup"

Currently the backupfolder is on the desktop. You could point to a deeper subfolder of the desktop by changing line 4

  1. var backup_path = desktop_path+"/diversesZeuchs/InDesign-Backups"

In case you want your backupfolder somewhere else, change the code like this

  1. var desktop_path = Folder.desktop.toString();
  2. var backup_path = "/someFolder/someSubfolder/backupLocation";
  3. //var backup_path = desktop_path+"/backup"

The Result

The script creates a subfolder structure. One subfolder for each day you do a save in the form yyyy mm dd and each document gets a time-prefix in the form hhmmss_

Antworten

  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Type the characters you see in this picture. (verify using audio)
Geben Sie die Zeichen ein, die in den oben gezeigten Bild zusehen sind. Wenn die Zeichen unlesbar sind, senden Sie das Formular ab und ein neues Bild wird generiert. Groß-und Kleinschreibung wird nicht beachtet.