Your best friend for file transfer.

Fetch application logoFetch

Watch Folder (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 22 years ago by Josiah144
  • Latest reply 22 years ago from Jim Matthews
  • Josiah144 Member

    Anybody know of a program (other than Applescript - unless a script is pre-made) that will watch a Fetch folder for new files and transfer them to another folder, say, on a server???

    Posted 22 years ago #

  • Josiah144 Member

    Anyone?

    Posted 22 years ago #

  • Josiah144 Member

    Hmmm? Anyone?

    Posted 22 years ago #

  • trowbrdg Member

    Originally posted by Josiah144:

    Anybody know of a program (other than Applescript - unless a script is pre-made) that will watch a Fetch folder for new files and transfer them to another folder, say, on a server???

    I would like to know this also, if you would let me know if you ever get a reply from someone who knows. Thanks!

    Posted 22 years ago #

  • Jim Matthews Administrator

    Sorry for my delay in responding -- I was doing some research. Mac OS 8 and 9 has a feature called Folder Actions. The idea is that you can attach AppleScripts to folders, and those scripts will be run automatically whenever interesting things happen to the folder. Here is an AppleScript that uploads items added to a folder:

    on adding folder items to this_folder after receiving added_items
    tell application "Fetch 4.0.1"
    put into url "<ftp://myuserid:@myhostname/>" item added_items
    end tell
    end adding folder items to

    For this script to work you'd do the following:

    1) Paste it into Script Editor, and replace myuserid and myhostname with the userid and hostname of your FTP server account.

    2) Save the script.

    3) Control-click on the folder you want to "watch" and choose "Attach a Folder Action..." from the contextual menu that appears. Choose the script you saved in step 2.

    4) Keep the folder open. Folder actions only execute when the folder is open. One way to keep a folder open without using lots of screen space is to drag the window to the bottom of the screen so it becomes a tab there. Eric Grant has written an extension called Folder Actions Plus that gets around this limitation; it can be downloaded from http://www.eagrant.com.

    I hope this helps,

    Jim Matthews
    Fetch Softworks

    Posted 22 years ago #

Topic closed

This topic has been closed.