Re: FTP and Applescript
Re: FTP and Applescript
- Subject: Re: FTP and Applescript
- From: Rick Dwyer <email@hidden>
- Date: Tue, 21 Aug 2007 13:58:20 -0400
Well what I really have going on is a bit complex. I have LDML
(Lasso) code that was supposed to issue a FTP upload command to a
remote directory with only drop box privileges. You cannot see the
contents, you can only upload.
The Lasso tags can't seem to handle this, they fail to upload to this
directory, but I can do so with Transmit.
Therefore, I wanted to have my Lasso tags execute an applescript or a
shell command, it can do both, I just didn't know which was better.
With thanks to Chris T, I have been trying curl in terminal.
However, I continually get the following error:
curl -T /TempUploads/steve2.zip -u my\/user:mypass ftp://
ftp.mydestination.com/
curl: (13) Bad PASV/EPSV response: 502
Notice in the username there is a \ directly infront of a /. The \ I
believe escapes the / which is a part of the username.
Anyone on what the error means? I know the username and password are
correct, as they work in Transmit.
Maybe it has a problem with passive mode?
Thanks,
Rick
On Aug 21, 2007, at 1:40 PM, Mark J. Reed wrote:
The "shell" is the program that accepts your typed input and acts upon
it inside a Terminal window. The Terminal application is just one of
many environments that provide access to the shell; in fact,
LoginWindow, Finder, etc, are all ultimately started up *by* the
shell.
What do you mean by "on an automated basis"? If you want the file
transfer to run automatically and unattended at a set time of day, for
example, then you don't need an interactive environment. You could
run it without a Terminal window at all. If you want to be able to
push a button and watch the transfer going through, that's a different
matter.
If unattended transfers are your goal, using AppleScript to have
Terminal run shell commands seems somewhat overkillish. I could see
using AppleScript to script Fetch or a similar app (or even just the
Finder - doesn't the Finder have built-in FTP support?), but there are
easier ways to run shell commands periodically. You could have
AppleScript call "do shell script", no Terminal necessary, or just set
up the script to run out of cron (or whatever that Apple tool is that
subsumes cron).
On 8/21/07, Rick Dwyer <email@hidden> wrote:
Hello List.
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.
Can anyone provide a little guidance?
Thanks
Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40mail.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
--
Mark J. Reed <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