• 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: Scripting Terminal for simple FTP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Terminal for simple FTP


  • Subject: Re: Scripting Terminal for simple FTP
  • From: Joshua See <email@hidden>
  • Date: Wed, 2 Apr 2003 08:28:32 -0600

On Tuesday, April 1, 2003, at 05:06 PM, Andrew Oliver wrote:

Fair point, Paul, although your approach is more along the lines of
stringing multiple commands together rather than being able to interact with
each command while it's running.

In this specific case, the question related to controlling the ftp
connection, and that can't be done, even with semi colon-separated commands
passed in the 'do shell script'.

Keep in mind that the original question was regarding "do script" in the Terminal, not the "do shell script" addition. Thus, the following should work.

tell application "Terminal"
activate
set ftpwin to front window
do script "ftp ftp.someserver.com" in ftpwin
do script "anonymous" in ftpwin
do script "foo@bar" in ftpwin
end tell

In practice, it can work, but isn't too reliable. Barring some unusual circumstance, UAS, curl, or commands that transfer files with a single line, such as scp, are a better approach.

Sincerely,
Joshua See
_______________________________________________
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: Scripting Terminal for simple FTP (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Getting a monitor to exit sleep from an AppleScript on OS X.2
  • Next by Date: GUI Change NetLocation / Can't find SysEvents dictionary
  • Previous by thread: Re: Scripting Terminal for simple FTP
  • Next by thread: Re: Scripting Terminal for simple FTP
  • Index(es):
    • Date
    • Thread