Versioning Script
From ptWiki
By RussellinSacto
Hello Everyone,
Thank you khodadad for all your help in creating this (a while ago).
This script works very well for how I manage versions of my files. In IMatch, I have two category trees - one for "subjects" and one for "workflow".
For example, my "Subjects" tree looks like this:
-Subjects
---Locations
-----California
-------San Francisco
-------Los Angeles
-----Nevada
-------Reno
-----Hawaii
-------Big Island
-------Maui
---Plants
-----Trees
-------Redwoods
-------Cypress
-----Flowers
-------Roses
-------Sunflowers
And my "Workflow" tree looks like this:
-Workflow
---RAW
---TIFF
---Color Corrected
---Final Proofs
---Print Ready
---Web Ready
You may, of course, have different items in your subject tree however many levels deep you want (cars, horses, etc.) and different types of files in your workflow (JPG, PSD, Customer Approved, etc.). That's fine.
My script takes the "Workflow" tree and "Subjects" tree (you can change the names of these trees in the script very easily - it's commented). The final result is a "Catalog" tree:
-Workflow
---RAW
-----Subjects
-------Locations
---------California
-----------San Francisco
-----------Los Angeles
---------Nevada
-----------Reno
---------Hawaii
-----------Big Island
-----------Maui
-------Plants
---------Trees
-----------Redwoods
-----------Cypress
---------Flowers
-----------Roses
-----------Sunflowers
---TIFF
-----Subjects
-------Locations
---------California
-----------San Francisco
-----------Los Angeles
---------Nevada
-----------Reno
---------Hawaii
-----------Big Island
-----------Maui
-------Plants
---------Trees
-----------Redwoods
-----------Cypress
---------Flowers
-----------Roses
-----------Sunflowers
---Color Corrected
-----Subjects
-------Locations
---------California
-----------San Francisco
-----------Los Angeles
---------Nevada
-----------Reno
---------Hawaii
-----------Big Island
-----------Maui
-------Plants
---------Trees
-----------Redwoods
-----------Cypress
---------Flowers
-----------Roses
-----------Sunflowers
---Final Proofs
-----Subjects
-------Locations
---------California
-----------San Francisco
-----------Los Angeles
---------Nevada
-----------Reno
---------Hawaii
-----------Big Island
-----------Maui
-------Plants
---------Trees
-----------Redwoods
-----------Cypress
---------Flowers
-----------Roses
-----------Sunflowers
---Print Ready
-----Subjects
-------Locations
---------California
-----------San Francisco
-----------Los Angeles
---------Nevada
-----------Reno
---------Hawaii
-----------Big Island
-----------Maui
-------Plants
---------Trees
-----------Redwoods
-----------Cypress
---------Flowers
-----------Roses
-----------Sunflowers
---Web Ready
-----Subjects
-------Locations
---------California
-----------San Francisco
-----------Los Angeles
---------Nevada
-----------Reno
---------Hawaii
-----------Big Island
-----------Maui
-------Plants
---------Trees
-----------Redwoods
-----------Cypress
---------Flowers
-----------Roses
-----------Sunflowers
The final, "Catalog" tree is built entirely of formulas - files aren't directly assigned to the catalog, but are added by their membership to both the "Subjects" category and the "Workflow" category. This makes it very easy to browse my "Print Ready Maui" pictures, for example.
I hope you enjoy this. Thanks for any feedback you might have,
Russell Schutte
<a href="mailto:russellinsacto@aol.com">russellinsacto@aol.com</a>
!!!!!!! Warnings: !!!!!!
1. Be sure you don't have a tree called "Catalog" before you run this script - as it deletes this tree to create a new catalog every time you run it. If you do have a tree called Catalog, you can change this name in the script very easily.
2. This script is resource intensive and takes a long time to complete if you have large subject and workflow trees - like I do. I've had it run for more than an hour! But I've never had it crash. Start it when you go to bed for best results. :-)
3. This script only allows one level of workflow items (any sub-elements will be ignored). For example, you can't have:
-Workflow
---RAW
---TIFF
-----16-Bit
-----8-Bit
---Color Corrected
Instead, set it up like this:
-Workflow
---RAW
---16-Bit TIFF
---8-Bit TIFF
---Color Corrected
4. Any time you create new categories either in your Subject tree or your Workflow tree, you'll need to rerun this script to update the Catalog tree. You don't need to do this if you're simply assigning more images to already existing categories in either tree. In reality the catalog is not updated, the catalog is deleted and recreated from scratch. If another programmer wishes to create a smart update, I'd love to see it!
* Script file: Download this script
* See the Script downloading and installation instructions for generic information about using scripts downloaded from the IMatch Wiki.