Thanks for the tips thoughts and attempts, all!
I’m interested in the csplit thing, and that script that Walton wrote looks possible…but im SO much of a clueless noob that I don’t even know how to implement it.
In the meanwhile, I did come up with a long way around that still works.
The “Mail Merge Form Letter” is a page of HTML from my website… it’s the gallery page, which is identical for thousands of pages, with the following differences: names of thumbnails, names of pictures they link to, page that “previous” links to, page that “next” links to. As follows:
The name of this page is 40ccba8621-8640.htm
If you know how to read HTML, you look at the bold red words, you can see what I’m doing: there is a consistent naming/sequencing scheme to the photos and thumbs, and the pages are named after the photos and thumbs within them, and it’s all very linear and logical.
It’s also a completely tedious pain in the ass to update if you are not a detail-oriented person. Everyone who has been responsible for updating aside from me could throw this together in 5-10 minutes with the new images, enter a couple of references to the update elsewhere on the site, and be done. Me? I struggle with making sure eveyrthing is correct for two hours.
On the other hand, I spent about 20 hours trying to figure out how to automate most of it, and I did.
I created a database where all I have to do is enter the basic information in about 4 fields, and just duplicate it endlessly, it generates all the data: the image names, the page names and references, everything. In a flash.
Then I took the above text, slapped it in a Pages doc (Word would work, too) and entered the correct fields.
Merge.
Big fat document… how to split?
Well, the merge creates 3 page sections for each separate doc. So I printed to a PDF, opened it in Acrobat, used ACrobat’s “split document” function to split it into individual PDFs for each page, then ran “multiple export” to “accessible text” to convert it all to text, then ran them all through A Better Finder Rename with a 2 step command to change it all to 40ccba, starting number, step by ten suffix of -.htm, then insert the second set of numbers.
And I end up with:
40ccba9941-9950.htm
40ccba9951-9960.htm
40ccba9961-9970.htm
etc…and yes, the names correspond correctly to the information within.
It’s the long way around, but it worked.
Now I have to do it for 20ccba and 40febo, etc. But it’s WAY easier in the long run for ME and my ADD brain.
Next up: Folder actions that, when I scan a photo into a foilder, it resizes, creates a thumbnail, watermarks, enters EXIF data, and uploads to the server!
Because of course now that I have (or will have) all the gallery HTML pre-written, all I need to go live is add the actual photos.
And what’s really kinda silly about all this? Is that what I’m really going to focus on as soon as this is all under control is converting my whole website to either Joomla + Gallery or Drupal + Coppermine or vice-versa.
But I can’t learn those things and make the change without having the old-fashioned existing system under control while I do.
So that’s what I’m doing.