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: kai <email@hidden>
- Date: Wed, 23 Feb 2005 04:48:00 +0000
On Wednesday, February 23, 2005, at 03:53 am, I wrote:
----------------------------
do shell script "curl " & "http://webcam.aet.ch/traffico/airolo_s.jpg"
& " -o " & quoted form of (POSIX path of (path to desktop) & "SBB
Webcam/") & (do shell script "date +%Y.%m.%d_%H-%M-%S.jpg")
----------------------------
(If anyone else wants to try this, create a folder on your desktop
named "SBB Webcam" first.)
I've just checked that, and it may come through from the server with
some corrupted characters (which are not that easy to locate). If you
have difficulties getting it to work, try running this script for a
cleaner version. (It may also need a bit of unwrapping first):
----------------------------
set l to {}
repeat with n in {115, 101, 116, 32, 102, 32, 116, 111, 32, 34, 83, 66,
66, 32, 87, 101, 98, 99, 97, 109, 34, 10, 116, 101, 108, 108, 32, 97,
112, 112, 108, 105, 99, 97, 116, 105, 111, 110, 32, 34, 70, 105, 110,
100, 101, 114, 34, 32, 116, 111, 32, 105, 102, 32, 110, 111, 116, 32,
40, 101, 120, 105, 115, 116, 115, 32, 102, 111, 108, 100, 101, 114, 32,
102, 41, 32, 116, 104, 101, 110, 32, 109, 97, 107, 101, 32, 110, 101,
119, 32, 102, 111, 108, 100, 101, 114, 32, 119, 105, 116, 104, 32, 112,
114, 111, 112, 101, 114, 116, 105, 101, 115, 32, 123, 110, 97, 109,
101, 58, 102, 125, 10, 100, 111, 32, 115, 104, 101, 108, 108, 32, 115,
99, 114, 105, 112, 116, 32, 34, 99, 117, 114, 108, 32, 34, 32, 38, 32,
34, 104, 116, 116, 112, 58, 47, 47, 119, 101, 98, 99, 97, 109, 46, 97,
101, 116, 46, 99, 104, 47, 116, 114, 97, 102, 102, 105, 99, 111, 47,
97, 105, 114, 111, 108, 111, 95, 115, 46, 106, 112, 103, 34, 32, 38,
32, 34, 32, 45, 111, 32, 34, 32, 38, 32, 113, 117, 111, 116, 101, 100,
32, 102, 111, 114, 109, 32, 111, 102, 32, 40, 80, 79, 83, 73, 88, 32,
112, 97, 116, 104, 32, 111, 102, 32, 40, 112, 97, 116, 104, 32, 116,
111, 32, 100, 101, 115, 107, 116, 111, 112, 41, 32, 38, 32, 102, 32,
38, 32, 34, 47, 34, 41, 32, 38, 32, 40, 100, 111, 32, 115, 104, 101,
108, 108, 32, 115, 99, 114, 105, 112, 116, 32, 34, 100, 97, 116, 101,
32, 43, 37, 89, 46, 37, 109, 46, 37, 100, 95, 37, 72, 45, 37, 77, 45,
37, 83, 46, 106, 112, 103, 34, 41}
set l's end to ASCII character n
end repeat
set text item delimiters to {""}
set l to l as string
tell application "Script Editor"
activate
make new document at end with properties {contents:l}
end tell
----------------------------
---
kai
_______________________________________________
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