Your best friend for file transfer.

Fetch application logoFetch

AppleScript Fetch handler trying too many times (3 posts)

  • Started 2 years ago by Lenny
  • Latest reply 2 years ago from Lenny
  • Lenny 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 2 years ago #

  • Jim Matthews Administrator

    Hi,

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

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 2 years ago #

  • Lenny 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 2 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.