• 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: Christopher Stone <email@hidden>
  • Date: Fri, 07 Sep 2012 11:18:25 -0500

Hey Yvan,

On Sep 07, 2012, at 09:18, koenig.yvan <email@hidden> wrote:
I edited it a bit with my "standard" tools

Nice to see ASObjC_Runner get some play.

I'm quite sure that there is a neater way to achieve the same goal with some magic wand ;-)

do shell script "
bURL=\"http://apod.nasa.gov/apod/\";
uPTH=`curl -s \"$bURL\" | awk -F\\\" '/href="" { print $2 }'`;
uNM=`awk -F/ '{ print $NF }' <<< $uPTH`;
curl -s \"$bURL$uPTH\" -o ~/\"Pictures/APOD_Images/`date '+%Y%m%d ยป '`$uNM\";
"

A minor miracle.  :)

--
Best Regards,
Chris

 _______________________________________________
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>)
 >Re: Downloading the APOD from Safari (From: Steve Thompson <email@hidden>)
 >Re: Downloading the APOD from Safari (From: Christopher Stone <email@hidden>)
 >Re: Downloading the APOD from Safari (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: Downloading the APOD from Safari
  • 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