Your best friend for file transfer.

Fetch application logoFetch

automator folder action (2 posts)

  • Started 1 year ago by uh
  • Latest reply 1 year ago from Jim Matthews
  • uh Member

    Hi - I'm currently looking for a way to use folder actions and automator to automatically upload new files to my server.
    BUT: I'm unable to find an efficient solution that those files are deleted LOCALLY after the upload...
    best
    Uli

    Posted 1 year ago #

  • Jim Matthews Administrator

    Hi,

    If you download the Fetch example scripts at

    http://fetchsoftworks.com/fetch/download/FetchExampleScripts.zip

    you will find Upload Folder Action, a Finder folder action script that uploads the files dropped into the folder in question. If you want the dropped items to be moved to the trash after they're uploaded you would insert the lines:

    tell application "Finder"
    move added_items to trash
    end tell

    right before the last line of the script:

    end adding folder items to

    Let me know if you have any questions.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 1 year ago #

Reply

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