Re: Curl
Re: Curl
- Subject: Re: Curl
- From: Andrew Oliver <email@hidden>
- Date: Wed, 09 Jun 2004 11:08:36 -0700
Typically, assuming the server at the other end is running Mac OS X and that
Test.app is a typical application bundle, no you can't do this.
The problem is that Test.app is not, technically, a file, it's a directory
containing the various resources, etc. that make up the application.
In this case, as far as curl is concerned, you're trying to download a
directory, which isn't supported in this way (typically when you pass ftp a
directory you get the directory listing, not all of its contents)
You'd need to use something like tar to combine the the application bundle's
parts into a single file for transfer via ftp, or maybe use some file
transfer protocol that can handle recursive file transfers (like scp,
maybe?...
do shell script "scp -r email@hidden:/Volumes/Installers/Test.app
./Test.app"
although you have have issues with authentication.
Andrew
:)
On 6/9/04 10:21 AM, "Martha Espinosa" <email@hidden> wrote:
>
Hi,
>
>
I'm trying to download an application using curl like this:
>
do shell script "curl -O
>
ftp://Account:email@hidden/Volumes/Installers/Test.app"
>
>
Can I do this? It complains it's not a plain text file. Any help is
>
appreciated.
>
>
-Martha
>
_______________________________________________
>
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.
_______________________________________________
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: | |
| >Curl (From: Martha Espinosa <email@hidden>) |