Your best friend for file transfer.

Fetch application logoFetch

Automatic FTP (13 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 22 years ago by eastvc
  • Latest reply 20 years ago from Jaded
  • eastvc Member

    Is Fetch able to automatically download files from a website without any user intervention? Perhaps it could check every five minutes using ADSL?

    Also would the reverse be true. I.E. Say a file was copied into a folder over the network, could Fetch upload it automatically to the website?

    Alan Robertson

    Posted 22 years ago #

  • Jim Matthews Administrator

    It's possible to automate Fetch to do those things using AppleScript and a script scheduler such as iDo Script Scheduler:

    http://www.sophisticated.com/products/ido/ido_ss.html

    I should write some example AppleScripts -- I'll add that to my to-do list.

    Jim Matthews
    Fetch Softworks

    Posted 22 years ago #

  • cway Member

    Jim Matthews, do you have an AppleScript for automatically FTP'ing down files?

    Posted 21 years ago #

  • Jim Matthews Administrator

    Do you want it to download a specific file, or files newer than a certain date?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 21 years ago #

  • ral35 Member

    Originally posted by JimMatthews:

    Do you want it to download a specific file, or files newer than a certain date?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 20 years ago #

  • ral35 Member

    Sorry about the previous post. A newbe me.

    Ho do I download a specific file to a specific location without any windows or user intervention with applescript

    Thanks

    Posted 20 years ago #

  • Jim Matthews Administrator

    Fetch can't download a file without opening a window, but you can certainly have downloads happen without user intervention. The easiest way to figure out Fetch's AppleScript syntax is to press the Record button in the Script Editor and then perform the task you want to automate manually. Fetch will write a script for you.

    For downloading a specific file to a specific folder on your Mac, the script would look like this:

    tell application "Fetch 4.0.3"
    duplicate url "ftp://userid:password@hostname/path/filename" to alias "HD:folder:"
    end tell

    Does that help?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 20 years ago #

  • ral35 Member

    Jim,

    OK on the transfer windows but how do I automate the OK response to the new connection window?

    Posted 20 years ago #

  • Jim Matthews Administrator

    If you uncheck "Show New Connection dialog at startup" in the Misc. section of Fetch Preferences the New Connection window won't appear automatically.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 20 years ago #

  • ral35 Member

    Thanks

    Posted 20 years ago #

  • Jaded Member

    Hi there. This looks like what I need - except that I don't want to download one file - but all files in the directory not already downloaded (unless they have been updated - e.g. a log file for today will be different tomorrow). It's for collecting web logs from my sites.

    All the sites are held on the same server - so the password and userid are the sane for all of them.

    I would have to run the script at least once a week as that is how often the logs are cleared off the server.

    Posted 20 years ago #

  • Jim Matthews Administrator

    You should use the mirror command in your AppleScript; that will only download new or changed files. The easiest way to write the script is to press the Record button in Script Editor and then choose Mirror Folder... from the Remote menu in Fetch to perform the command. Then go back to Script Editor to polish the script that was recorded for you.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 20 years ago #

  • Jaded Member

    Do you know, I've never used that function! And on and off I've been using Fetch for a good few years.
    Another case of RTFM, I think!

    Thank you

    Posted 20 years ago #

Topic closed

This topic has been closed.