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 do shell script "cd ~/Desktop && curl -sO " & img_url
Steve ----------------------------
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
|