Sharing large journals, containing file references scattered across a labyrinthine directory structure, can be problematic. This addin allows the user to package a journal for easy sharing, by doing the following:
Prompts user for a save directory.
Prompts user for a journal to be packaged.
Creates a timestamped folder.
Inserts into the timestamped folder copies of all files referenced by the journal, and changes the file links in the journal to local links.
If I/O errors (file not found) or warnings (a file is used more than once in the journal, and is therefore only saved once to the timestamped directory) are encountered, a log is created and placed in the timestamped folder. Otherwise, no log is created.
Copies the Journal (with local file references) into the timestamped folder.
If applicable, alerts the user to errors, and opens the log.
Opens the timestamped folder in an Explorer (Windows) or Finder (Mac) window.
Assuming that all file links in the original journal are operational, the sharing user needs only to zip the contents of the folder and share the compressed file as desired. Once a recipient unzips the file into the folder of his or her choice, the journal will work as it did before, as long as it and its supporting files are contained in the same directory.
Another use: the packager add-in can also be used to quickly check whether all file links in a given journal are unbroken:
Run the journal packager.
If no log is created, or if a log is created, but contains only "file already exists" warnings, all of the links in the journal are unbroken. Otherwise, there is at least one broken link.
Delete the timestamped directory and its contents, if desired.
Note: In the event the original journal references two or more different files of the same name, stored in different directories, only the file whose complete path occurs first alphabetically will be saved to the destination directory. For most users, this will not be an issue.
UPDATE: This version fixes the issue in Windows pertaining to log windows.