Re: downloading a file into a folder (still)
Re: downloading a file into a folder (still)
- Subject: Re: downloading a file into a folder (still)
- From: Christian Vinaa <email@hidden>
- Date: Tue, 22 Feb 2005 11:08:17 +0100
this works for me (thanx to various input from this list)
set myTime to (current date) as text
set theTime to characters -8 through -1 of (myTime) as text
set theGoodTime to characters 1 through 2 of theTime & "-" &
characters 4 through 5 of theTime & "-" & characters 7 through 8 of
theTime as text
set myDay to the day of (current date) as text
set myMonth to the month of (current date) as number
set myGoodMonth to (text -2 thru -1 of ("00" & (myMonth)))
set myYear to the year of (current date) as text
set myName to myYear & "." & myGoodMonth & "." & myDay & "_" & theGoodTime
set this_URL to "http://webcam.aet.ch/traffico/airolo_s.jpg"
set myFileName to myName & ".jpg"
do shell script ("curl " & this_URL & " -o " & quoted form of POSIX
path of (((path to desktop) as string) & "SBB Webcam:" & myFileName))
save picture with date/time-stamp; neat !
--
Christian Vinaa
email@hidden
...... Meanwhile, aunt Martha, having taken a tramp in the woods,
is lying in a ditch at the edge of town .........................
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden