Your best friend for file transfer.

Fetch application logoFetch

Dismissing a non-connection (4 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 12 years ago by PitchyPaw
  • Latest reply 12 years ago from Jim Matthews
  • PitchyPaw Member

    Question 1 -
    I'm using Fetch 4.0.2 to upload weather data to my web pages. I have incorporated a mirror file into an AppleScript for an automated activity on an unattended Mac. All works fine except the problem I encounter is if the host's server is down or my cable connection/IPNetRouter Mac is temporarily off LAN line, two or three dialog boxes pop up in Fetch when attempting an upload. A couple boxes saying that the file transfer server is shut down or the connection has timed out I can handle with Okey Dokey Pro. The one giving me a problem is a dialog box requesting a "New Connection" which (I don't want) can not be dismissed this way and "hangs" the process.
    I would like to script this circumstance to close window 1 if a non-connection happens. An upload is scheduled for every 10 minutes so another try will be made then. I have tried various scripts but none seem "bullet-proof". I have my script wrapped in a try statement but this "hang" does not show up as an error to be dealt with in the try statement. I could incorporate a OneClick action to dismiss the box button but that's a little klunky.
    Any suggestions?

    Question 2 -
    How to script to make the whole Fetch process function in the background while other applications have the floor? I have tried connecting as window 2 but Fetch seems to demand a front row seat. Fetch does not seem to like screen saver application(s) either so I have eliminated that process. This is not a big problem - just a small annoyance when I am using/checking the computer otherwise, I don't care.

    Thanks

    Mac PPC 7600, Os 9.1, AppleScript 1.5.5, Fetch 4.0.2 running unattended as a home automation and weather station interface.

    Posted 12 years ago #

  • Jim Matthews Administrator

    Answer 1 -- you should be able to fix this by unchecking the "Show New Connection window at startup" option in the Misc. section of Preferences.

    Answer 2 -- Fetch should not mind being in the background. Make sure your script does not have any "activate" statements that bring it to the front.

    I hope this helps,

    Jim Matthews
    Fetch Softworks

    Posted 12 years ago #

  • PitchyPaw Member

    Originally posted by JimMatthews:

    Answer 1 -- you should be able to fix this by unchecking the "Show New Connection window at startup" option in the Misc. section of Preferences.

    Answer 2 -- Fetch should not mind being in the background. Make sure your script does not have any "activate" statements that bring it to the front.

    I hope this helps,

    Jim Matthews
    Fetch Softworks

    -----------
    Answer 1 works. - I missed the option.
    Answer2 - What is the script necessary to close the "background" window then (break the connection) without having the window in front? My weather data is uploaded in 30 seconds. I hate to let Fetch keep the connection open for another 4 1/2 minutes until it times out.

    Thanks for your help.

    Posted 12 years ago #

  • Jim Matthews Administrator

    You should be able to say:

    close transfer window 1

    to close the frontmost transfer window. If the window you want to close is not the frontmost one, you can close it by name:

    close transfer window "ftp.acme.com"

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 12 years ago #

Topic closed

This topic has been closed.