Re: FTP and Applescript
Re: FTP and Applescript
- Subject: Re: FTP and Applescript
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 21 Aug 2007 13:40:45 -0400
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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 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