This blog refers to this forum posting about LJ Project Catalogues.
A couple of people have asked me how I do this, and, one day, I won’t be around, so here’s the low down on how project catalogues are made…
Get the project card images.
I run an AppleScript to do this – it’s in the goodie pack below as “Get.scpt”.
You set the start and end numbers, create the correct folder structure (which is hard-wired into the code)...
and click “Run”.
Wait a bit and it’s done.
I do this once in a while just to keep up to date, and to avoid having to get 1000 images at a time.
Once we have the 1000 project card images, it’s time for the fun to begin.
I toyed with the idea of doing this in AppleScript, and I’m sure you can, but I am (was) a C++ guy by trade, so I wrote it the hard way (which is the easy way if you dream in c++).
The code for that is in the goodie pack below. I know, there’s a “goto” – it was late, and it’s all a bit of a clunk just to make it work.
That said, there are a couple of really really nifty objects in that package – DoCFRelease<> is, imho, an awesome bit of code.
The output is a single html page of the 1000 projects.
It’s real – you can open it in your browser (and one does, to check for weirdnesses). This takes, well, it’s already finished – it’s that fast (c++ you know).
From here it’s all plain sailing, just turn the various handles…
Use Adobe Acrobat Professional to make a composite PDF by adding a front cover, which I made in a basico drawing package, and showing it the 1000 projects html page. Because there are links in the html, the PDF ends up with links. This takes maybe 30 seconds to do.
After saving it you have to do a few bits of clean up, “Examine document”, to remove some metadata (you don’t want to know what my disk is called, do you?), and to get it to open for you in the right view and mode.
Upload to 4Shared (this is the longest task – takes about 15-20 minutes)
Make the torrent file using a torrent client – I happen to use Transmission for this, since I’ve never written the bit to make my home grown torrent client create torrents.
Upload said torrent file to 4Shared, and remove the previous one.
Update the forum page so people know there’s a new update.
The goodie pack
The code I use, both AppleScript and C++, can be downloaded and enjoyed here.
This code is native OSX only – it is not cross platform – please don’t ask me about windows, windows versions etc etc – for me, windows are things you look through when it’s raining outside.
Comments, thoughts, questions, critiques (except about the goto) etc etc, as long as they are on topic are welcome.
-- "Do not speak – unless it improves on silence." --- "Following the rules and protecting the regulations is binding oneself without rope."