LumberJocks

How the LJ project catalogues are made

  • Advertise with us
Blog entry by KnickKnack posted 903 days ago 1022 reads 1 time favorited 1 comment Add to Favorites Watch

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…

Stage 1…
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.

Stage 2…
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…

Stage 3…
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.

Stage 5…
Upload to 4Shared (this is the longest task – takes about 15-20 minutes)

Stage 6…
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.

Stage 7…
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."



1 comment so far

View ShopTinker's profile

ShopTinker

872 posts in 1372 days


#1 posted 902 days ago

I know what an apple is, Granny Smith are my favorite. My mom sent me goodie packs when I was in college. I once got a C+, but mostly a B-. After that you lost me. :)

I would like to Thank You for the LJ project catalogs. They’re Awesome!!

-- Dan - Valparaiso, Indiana, "A smart man changes his mind, a fool never does."

Have your say...

You must be signed in to post the comments.

DISCLAIMER: Any posts on LJ are posted by individuals acting in their own right and do not necessarily reflect the views of LJ. LJ will not be held liable for the actions of any user.

Latest Projects | Latest Blog Entries | Latest Forum Topics

HomeRefurbers.com

Latest Projects | Latest Blog Entries | Latest Forum Topics

GardenTenders.com :: gardening showcase