• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Downloading the APOD from Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Downloading the APOD from Safari


  • Subject: Re: Downloading the APOD from Safari
  • From: Steve Thompson <email@hidden>
  • Date: Fri, 07 Sep 2012 12:13:18 +0100

This version will get the current (ie, today's) picture and put it on the current user's desktop (as a file, not as the desktop picture).

It comes from the no-error-checking-no-forward-thinking-it-just-works school of programming.

set tmp to characters 10 thru -3 of (do shell script ("curl -s http://apod.nasa.gov/apod/ | grep -i a.href="" & quote & "image")) as string
set img_url to "http://apod.nasa.gov/apod/" & tmp
do shell script "cd ~/Desktop && curl -sO " & img_url


Steve
----------------------------
http://about.me/stetho




On 7 Sep 2012, at 11:35, emile.a.schwarz wrote:

Hi all,

thank you for the APOD web site: very nice images.

 

Thank you for the scripts too.

 

My main problem is to think to got here, but since there is an archive…

 

Also, I do not use Safari so often, a matter of taste.

Regards,


Emile

Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
  • Follow-Ups:
    • Re: Downloading the APOD from Safari
      • From: Christopher Stone <email@hidden>
References: 
 >Re: Downloading the APOD from Safari (From: "emile.a.schwarz" <email@hidden>)

  • Prev by Date: GraphicConverter Download
  • Next by Date: Re: Downloading the APOD from Safari
  • Previous by thread: Re: Downloading the APOD from Safari
  • Next by thread: Re: Downloading the APOD from Safari
  • Index(es):
    • Date
    • Thread