• 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: Curl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: cant get script to run
  • Next by Date: Re: Curl
  • Previous by thread: Re: Curl
  • Next by thread: Re: Curl
  • Index(es):
    • Date
    • Thread