• 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 a file into a folder (still)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >downloading a file into a folder (From: Ed Rush <email@hidden>)
 >Re: downloading a file into a folder (From: Emmanuel <email@hidden>)
 >Re: downloading a file into a folder (still) (From: Ed Rush <email@hidden>)

  • Prev by Date: Re: RegExps in AS
  • Next by Date: Re: [OT] DeveloperTools Vs Xcode Tools VS X11
  • Previous by thread: Re: downloading a file into a folder (still)
  • Next by thread: Re: downloading a file into a folder
  • Index(es):
    • Date
    • Thread