Doug Hellmann is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

dhellmann / AstronomyPictureOfTheDay

Download the latest picture from the APOD site and make it your desktop background.

Clone this repository (size: 884.6 KB): HTTPS / SSH
hg clone https://bitbucket.org/dhellmann/astronomypictureoftheday
hg clone ssh://hg@bitbucket.org/dhellmann/astronomypictureoftheday

Issues

#1 Downloading images other than APOD

Reported by Jeff Ramnani (last edited )

I'm running this on OS X Lion, and for some reason, the "Get Image URL's from Webapge" action was listing image links to external sites higher than apod.nasa.gov in its results.

Editing the following "Run Shell Script" step solves this:

# If the page links to more than one image, we only want the first one.
# Filter out non-APOD URL's.
cat - | grep 'apod' | head -n 1 
Status: resolved Responsible: nobody Type: bug Priority: minor
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 Doug Hellmann

    written

    • Changed status from new to open.

    Thanks, that looks like an easy enough fix.

  2. #2 Doug Hellmann

    written

    • Changed status from open to resolved.

    update with Lion version of Automator; filter links to only show the ones that are part of the APOD site; fixes #1

    cb1007bf0ef3

  3. #3 Doug Hellmann

    written

    This fix is included in release 3.4.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?