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

Re: FTP and Applescript


  • Subject: Re: FTP and Applescript
  • From: Philip Aker <email@hidden>
  • Date: Tue, 21 Aug 2007 10:58:46 -0700

On 2007-08-21, at 10:05:42, Rick Dwyer wrote:

I need to FTP some files to a remote directory on an automated basis.

I would like to use applescript to invoke the necessary commands via the terminal to perform this but really don't know where to begin.

I read I could use a "shell" script to perform what I want to do, but do not know the syntax as it would appear in applescript.

You should probably use 'curl' for this purpose. In case you need to know any fancy options, get its manual into human-readable format by typing this in Terminal:


	man -t curl > ~/Desktop/curl.ps

Now open up the curl.ps file and save it as a PDF.


For the AppleScript portion the call will look something like:

do shell script "cd ~/Desktop;curl -u user:password -T '{blob.xml,some.txt}' ftp://ftp.some.site.com";

Here the target files are located on my desktop so I 'cd' there first and then upload them.


Philip Aker email@hidden _______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >FTP and Applescript (From: Rick Dwyer <email@hidden>)

  • Prev by Date: Re: FTP and Applescript
  • Next by Date: Re: FTP and Applescript
  • Previous by thread: Re: FTP and Applescript
  • Next by thread: Re: FTP and Applescript
  • Index(es):
    • Date
    • Thread