Your best friend for file transfer.

Fetch application logoFetch

Scripting timeout problem (5 posts)

  • Started 18 years ago by SoCalMacDude
  • Latest reply 18 years ago from Jim Matthews
  • SoCalMacDude Member

    I am trying to upload a database to a web server via Fetch 4.0.3.

    Filemaker 6 is initiating the applescript from a Filemaker script.

    Everything works well, until an error appears. Fetch begins the upload, and in exactly 2 minutes Filemaker posts this error:

    Fetch 4.0.3 got an error: AppleEvent timed out. (Error -1712).

    Fetch is, in fact, still uploading, but my Filemaker script continues to the next step, sending an email telling the host to swap out the database. But it's not fully uploaded yet! So, I need some way to supress the error, or set a timeout somewhere longer.

    Here is my code (I made the delay long to see if there is a change. Result: no change!):

    tell application "Fetch 4.0.3"
    with timeout of 2300 seconds
    open remote directory ""
    put into transfer window "filename and path" format Automatic without uniquename
    end timeout
    end tell

    Any ideas???

    Posted 18 years ago #

  • Jim Matthews Administrator

    That should work. Does the script work if you run it in Script Editor (instead of in FileMaker)?


    Jim Matthews
    Fetch Softworks

    Posted 18 years ago #

  • SoCalMacDude Member

    You're right!
    It does work fine when run throught Script Editor. The error, however, must come from Fetch not giving Filemaker any feedback that it is busy completing the task.

    Must be a 2 minute timeout somewhere!
    More ideas???

    Posted 18 years ago #

  • SoCalMacDude Member

    I just solved my problem - it is a bug in filemaker that has been there for years! The FM Script work around looks like this for me:

    I created the script as an application file on the hard drive.

    Send Apple Event -> Open Application ->
    Pause [20 minutes]
    Send email to swap the database

    The file takes 17 minutes to upload now, so I gave it a little more for the future.

    Works fine, but now I have to manage the extra file!

    Here's a post that helped me discover this:

    Hope this helps the next guy who stumbles on this problem!

    Posted 18 years ago #

  • Jim Matthews Administrator

    Thanks for following up -- hopefully Filemaker has fixed this in their latest release!

    Jim Matthews
    Fetch Softworks

    Posted 18 years ago #


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