Your best friend for file transfer.

Fetch application logoFetch

auto downloads (2 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 20 years ago by clindsey
  • Latest reply 20 years ago from Jim Matthews
  • clindsey Member

    Hi all,
    I am trying to write a script that 'watches' a FTP directory, and after files land there and are completly on the FTP, they are download to another server via Fetch. What i am having problems with is keeping Fetch 'watching' the directory, and downloading all files as they are received.

    tell application "Fetch 4.0.3"
    activate
    make new transfer window at beginning with properties {hostname:"IP Address", userid:"userID", password:"Password"}
    open remote item "blablabla"
    open remote item "blablabla"
    copy remote directory "TEST_12_22" to beginning of alias "AraxiVolume_PM238_U:Jobs:Chad Test:"
    quit
    end tell

    Any ideas?

    thanks, Chad

    Posted 20 years ago #

  • Jim Matthews Administrator

    Check out the MakeNewFileShortcuts script in the Fetch Example Scripts folder. It checks a server directory and adds new files to a shortcut list. You could change the "make new shortcut" command to "download curItem" instead.

    If you want to have the script check repeatedly use a repeat loop.

    I hope this helps,

    Jim Matthews
    Fetch Softworks

    Posted 20 years ago #

Topic closed

This topic has been closed.