Your best friend for file transfer.

Fetch application logoFetch

AppleScript Fetch handler trying too many times (3 posts)

  • Started 9 years ago by Lenny Eiger
  • Latest reply 9 years ago from Lenny Eiger
  • Lenny Eiger Member

    I have a script that backs up a database (Helix) runs it thru tests, copies it here and there, zips it and sends the zipped file to an ftp server. It's very reliable.
    Except that sometimes it does it numerous times. There are 6 or 7 copies of the database at the remote site.

    with timeout of 7200 seconds
    tell application "Fetch"
    activate
    open remote folder fetchRemotefolder
    set theResult to put into transfer window fetchTransferWindow item theFileToSend with uniquename
    end tell
    end timeout
    tell application "Fetch" to quit

    What am I doing wrong?

    Thanks.

    Edited 9 years ago #

  • Jim Matthews Administrator

    Hi,

    I would take out the words "with uniquename"; does that help?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 9 years ago #

  • Lenny Eiger Member

    It might. In earlier testing, I had only the date attached to the file so it just overwrote things, but now the time is there as well..

    Thanks.

    Posted 9 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.