Your best friend for file transfer.

Fetch application logoFetch

FTP Notification (5 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 9 years ago by Jward
  • Latest reply 8 years ago from Jward
  • Jward Member

    Hi,

    I'm looking for a way to recieve automatic notification when there is a new post to our FTP site.

    Any Help!

    Posted 9 years ago #

  • Jim Matthews Administrator

    You could write an AppleScript to periodically check for new files. Let me know if you need help doing that.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 9 years ago #

  • Jward Member

    Hi Jim,

    I've never writen an applescript before, so your help would be greatly appreciated!

    Jeff

    Posted 9 years ago #

  • Jim Matthews Administrator

    Sorry for the late response. Here's a script that (if you save it as an application and run it) checks a server folder once a minute, and puts up a dialog if it sees anything in the folder. You could also have it beep or say something.

    on idle
    tell application "Fetch 4.0.3"
    open url "ftp://userid:@hostname/path/"
    set itemCount to count of every remote item of transfer window 1
    if itemCount > 0 then
    display dialog "Item on server"
    end if
    end tell
    return 60 -- check again in 1 minute
    end idle

    You need to change the URL in the script. The easiest way to compose a URL is to connect to the folder in question with Fetch and choose Copy from the Edit menu.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 9 years ago #

  • Jward Member

    Thanks Jim,
    This has been very helpful

    Posted 8 years ago #

Topic closed

This topic has been closed.