It seems that everyone running Tag72a needs something unique in their document information reporting. The settings panel has grown considerably trying to address as many user requests as possible, but along with flexibility comes the appearance of complexity!
One more preference has now been added, however, that should serve the purpose of countless additional items: the option to automatically run user scripts along with its own updates.
Why would you want to run a custom script? Well, for example:
- Reformat a date to any of the many alternatives to the two formats in Tag72a.
- Parse a filename to derive additional information such as version, language, region.
- Re-order the spot color list so that certain colors are always shown first.
Simply check the “Run user scripts” option and Tag72a will look for and run any found scripts by these names.
You only need to use the script (or scripts) that are relevant to you. Some things to keep in mind are:
- Doc Changed event happens every time a user switches from one document to another, including when a new document is opened or sometimes when a document is closed. You may not want to use both Doc Opened and Doc Changed events if one or the other does what you want. If both Doc Opened and Doc Changed run, it is not a bug, because Adobe Illustrator signals to the plugin that both events took place.
- Doc Print and Doc Save happen just before the actual save or print takes place.
- Doc Save Copy As happens just after you have saved a copy as, which enables the data to be updated from the saved version back to the currently-open version.
- Update happens only when you click the Update button in the panel.
- Every Event happens right after any of the other scripts runs, and works for all events regardless of what other scripts are there. You may want to put some scripting in Every Event and other scripting in specific events, depending on your needs.
- All scripts run after Tag72a makes its own updates.
- Your scripts may need to check the contents of the document to determine whether the script needs to run, because another event may have just run the script. Then again, it may not hurt anything if your script happens to run twice.
If you write a custom script for one or more of these events, please share your idea with other users!