|07-17-2008, 06:13 PM||#1|
Join Date: Jul 2008
AppleScript FTP putting files
I am new to Mac and AppleScript. Trying to figure out how to replicate a PC batch file.
Batch file changes directory, issues ftp command that pulls in a .txt file with the ftp commands. The .txt file logs in, changes to correct directory and uses "put" command to load the file.
Trying to replicate this with AppleScript. Any help is greatly appreciated.
|07-17-2008, 06:44 PM||#2|
Join Date: Jan 2002
I'd look more to a shell script than to AppleScript. AppleScript's strength is interacting with GUI apps which you don't seem to be doing here.
Look also at the 'expect' command: read 'man expect'
|07-17-2008, 09:26 PM||#3|
Join Date: Jun 2007
Location: Skellefteċ, Sweden
#! /bin/bash curl -T /some/where/specials.shtml -u username:password \ ftp://www.starmarketandcatering.com/web/
/Bengt-Arne Fjellner IT-Administrator Luleċ university, Sweden.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
|Display Modes||Rate This Thread|