Your best friend for file transfer.

Fetch application logoFetch

Applescripting Fetch (4 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 11 years ago by William H
  • Latest reply 11 years ago from Jim Matthews
  • William H Member

    Hello Jim,

    I'm new to applescript but I have the basics figured out with just a couple questions about Fetch and what I'm trying to accomplish.

    I work at a newspaper where one individual is responsible for going to several FTP sites and downloading quite a few different comics, crosswords, etc.

    I would like to automate this process as much as I can through the use of an Applescript and Fetch 4.0.3.

    Here is my first question: I hit "record" and proceed on to the first site and download a couple items, then hit "stop". All seems ok at this point but when I try to run it, I am constantly held up at the start by the connection window. For some reason Applescript won't automatically connect. Is there something I'm missing?

    I've added the site to my shortcuts and even added the login and passwd to my keychain. I've also modified the script to reflect the actual passwd.

    Posted 11 years ago #

  • Jim Matthews Administrator

    You should uncheck "Show New Connection dialog at startup" in the Misc section of Preferences. Does that fix things?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 11 years ago #

  • William H Member

    Perfect, that did the trick. Thanks a lot. I have one more question and then I should be all set. When Fetch connects to a remote FTP site and navigates to the right directory I need it grab only specific files; the latest or newest ones. The files in the directory are named according to date, i.e., bo021101.tif.bin. I found that if I arrange the folder according to date the correct ones are at the top but the file names will change from week to week according to day. (I hope I'm being clear enough.)

    If I can get this figured out I will be done with this project. Thanks for you consideration.

    Posted 11 years ago #

  • Jim Matthews Administrator

    You can refer to files by their position from the top of the list; for example:

    remote file 1

    refers to the first one. And you can set the viewing order from a script:

    set viewBy of transfer window 1 to byDate

    I hope this helps,

    Jim Matthews
    Fetch Softworks

    Posted 11 years ago #

Topic closed

This topic has been closed.