Your best friend for file transfer.

Fetch application logoFetch

Quick way to see if an ftp site is up (automated)? (3 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 20 years ago by Wes
  • Latest reply 20 years ago from Wes
  • Wes Member

    Using applescript/os9, is there a way to get Fetch to ping or check an ftp site to see if it is up or down before sending files?

    fyi: I have an applescript that runs every hour to send files out an FTP site. The site goes down alot during deadline.

    Thanks
    Wes

    Posted 20 years ago #

  • Jim Matthews Administrator

    You can use a try block in an AppleScript, something like this:

    tell application "Fetch 4.0.3"
    try
    open url "ftp://userid :password@server/"
    close transfer window 1
    display dialog "The server is up"
    on error
    display dialog "The server is down"
    end try
    end tell

    Does that help?

    Thanks,

    Jim Matthews
    Fetch Softworks

    [This message has been edited by JimMatthews (edited 06-26-2003).]

    Posted 20 years ago #

  • Wes Member

    It pains me that it was that simple.

    Thanks again for your help.

    Wes

    Posted 20 years ago #

Topic closed

This topic has been closed.