Re: FTP scripting
Re: FTP scripting
- Subject: Re: FTP scripting
- From: "Marc K. Myers" <email@hidden>
- Date: Sun, 24 Jun 2001 01:16:14 -0400
- Organization: [very little]
>
Date: Sat, 23 Jun 2001 23:13:07 -0500
>
Subject: FTP scripting
>
From: Phil Burk <email@hidden>
>
To: AppleScript <email@hidden>
>
>
This list rules - I have always been able to receive tips and advice no
>
matter what the subject. So Thanks In Advance.
>
>
Here's the question: I generate paperwork for various clients daily and
>
would like to upload them via a droplet to an FTP server. I would like the
>
script to parse the paperwork's filename (in format -
>
Phil-20010622-Clientname.xls) by clientname and date. That's no problem, I
>
can handle doing that, but I don't know if I can do what I want to do after
>
that.
>
>
The FTP server has a directory on it called "Clients" in which there are
>
individual directories named with our various clients names. Inside these
>
client folders are subdirectories in the format "2001-05".
>
>
Is it possible to have AppleScript check the existence of a date folder and
>
create one if it doesn't exist? I could do this on a regular file server
>
but I'm not sure that it's possible with an FTP server.
I don't think you can do it with vanilla AppleScript or scripting
additions, but it's quite easy to do with Fetch. Besides being highly
scriptable it's also recordable, so you can run through the process
manually with recording on and you'll get the gist of the commands you
need for the finished script.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[6/24/01 1:15:53 AM]