Your best friend for file transfer.

Fetch application logoFetch

automatic resume download issue (8 posts)

  • Started 14 years ago by Guru
  • Latest reply 14 years ago from Scott McGuire
  • Guru Member

    I am new to mac and have been using fetch since last 5 days. The server connection from which I download file seems to be unstable and disconnects every 5 minutes. I was using Flash Fxp client on my windows before. I had an option of "resume all" in that client and would automatically resume download from where it had stopped and continue to download until entire queue is downloaded without me clicking on resume multiple times. It was very convenient and easy. I tried Mirror option in fetch. But If I am downloading multiple files or a folder containing many files from a server like that, I have to mirror every 3 to 5 min when connection from server is lost or if I get disconnected.

    Is there a solution for that in fetch? It will make life easier. I can queue multiple files and folders and forget about it until they are downloaded without me being physically sitting in front of computer for hours and mirror every 5 minutes.

    regards

    Posted 14 years ago #

  • Jim Matthews Administrator

    Hi,

    I could write an AppleScript that would automate the process of issuing mirror commands until the entire download is successful. To help me do that, could you:

    1) Run Script Editor (it is found in the AppleScript folder of the Applications folder)
    2) Click the Record button
    3) Issue the mirror command in Fetch
    4) Click Stop in Script Editor, and send back the script that has been recorded.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 14 years ago #

  • Guru Member

    mirror remote folder "ftp://joshijo:@psychedelicNerd.dns2go.com:2709/" to alias "Macintosh HD:Users:Gururaj:Downloads:DELHI 6 (2009) 10-TRAX !COMPLETE!:" without delete strays
    end tell

    Posted 14 years ago #

  • Jim Matthews Administrator

    Try this script:

    tell application "Fetch"
    set done to false
    repeat while not done
    try
    mirror remote folder "ftp://joshijo:@psychedelicNerd.dns2go.com:2709/" to alias "Macintosh HD:Users:Gururaj:Downloads:DELHI 6 (2009) 10-TRAX !COMPLETE!:" without delete strays
    set done to true
    end try
    end repeat
    end tell

    It tells Fetch to keep doing the mirror until it completes successfully.

    Please let me know how it goes.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 14 years ago #

  • T. v. Gerwen Member

    Hi, I tried this, I'm on Mac OS 10.4.11 (yeah i know it's getting a bit old) but the above code executes the mirror in an endless loop on my machine. Could it be that the Applescript version does not understand the loop condition when written this way?

    Posted 14 years ago #

  • Scott McGuire Administrator

    Hi T.v.,

    Could you show us the exact script that you're using that is looping forever?

    And are you actually trying to solve the same problem - you have downloads that disconnect before they finish, so you are trying to set up a mirror command to make sure the job is finished - or are you just experimenting with mirror scripting? (I recall that you asked about the mirror command and AppleScript a few days ago.)

    Thanks,

    Scott McGuire
    Fetch Softworks

    Posted 14 years ago #

  • T. v. Gerwen Member

    I put another statement inside the "try", which failed to execute, hence the loop, sorry for the fuss :)

    As for the other question, I did plan to use the script I'm putting together on some large remote folders which are known to incidentally drop the connection, but regardless, I just like to make things failproof, which usually means that before I am done, they fail a lot ;)

    Posted 14 years ago #

  • Scott McGuire Administrator

    Hi T. v.,

    Okay, we're glad you figured out the problem with the AppleScript.

    Best,

    Scott McGuire
    Fetch Softworks

    Posted 14 years ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.