Re: Curl
Re: Curl
- Subject: Re: Curl
- From: Doug McNutt <email@hidden>
- Date: Wed, 9 Jun 2004 12:12:47 -0600
At 11:21 -0600 6/9/04, Martha Espinosa wrote:
>
I'm trying to download an application using curl like this:
>
do shell script "curl -O ftp://Account:email@hidden/Volumes/Installers/Test.app"
The -O option tries to create an output file with the same name as the source "Test.app" in the current working directory.
Applescript has no good way to set a working directory in a one liner and curl is probably trying to write to some strange place.
I think you can use -o "$HOME/Test.app" with a lower case o to tell curl exactly where to put it.
Try it in Terminal or a BBEdit worksheet first. You can probably include a cd $HOME within the do shell script but that gets you into semicolons that get confusing.
You might also want to look at the -n option in curl which allows you to store passwords in $HOME/.netrc so they don't have to appear in your script.
--
Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >Re: Startup ! (From: Andrew Oliver <email@hidden>) |
| >Curl (From: Martha Espinosa <email@hidden>) |