Saturday, October 5, 2013

Picture of the day - Part 1

Okay, so I use the great app Geektool to change/show some desktop pictures.

I have Geektool configured to look in my backgrounds folder for a file 1.jpg and display it as my background picture. I thought it would be cool if that picture changed daily.

So what site has a great looking picture of the day? Wikipedia of course.

So my idea was to use Mac OS X Automator to follow this workflow:

Use the main wikipedia URL
Get the links from the page
Filter them down as the POTD always contained http://en.wikipedia.org/wiki/Template:POTD/ then todays date
Get the contents of the page
Save images

So I created this workflow, which worked okay.


That dumped the files to the folder abc123 on my desktop but it wasn't efficient. It would grab all the other images like the wikipedia logo as well as the picture of the day as small thumbnails.
I tried to use automators various other finder functions to move and rename, but I didn't have much luck.

I thought that I could do better by getting only the exact image I wanted at the size I wanted, so see what else I tried in Part 2.


No comments:

Post a Comment