Your best friend for file transfer.

Fetch application logoFetch

Fetch Automator upload Action (4 posts)

  • Started 3 years ago by Dan
  • Latest reply 3 years ago from Scott McGuire
  • Dan Member

    I am trying to create an automator action to do the following:

    Create folder on desktop
    Get specified files
    archive specified files
    upload specified files to ftp server
    move archived folder and file to trash.

    All works well until I want to create a new directory on the server. Fetch Upload action will send the file to an existing directory but it doesn't seem to be able to create a new directory on the ftp server and then upload the file to that new directory.

    Am I off base on this?

    Posted 3 years ago #

  • Scott McGuire Administrator

    Hi Dan,

    You're correct that there is no direct way to use the Fetch Upload Automator action to upload files to a new folder that doesn't already exist on the servers.

    However, there are a couple of possible alternatives to that may allow you to do what you want, depending on the particulars of what you're trying to do.

    Before I try to explain them, I'd like a little more info. Would the new folder on the server have the same name as the folder you create on the Desktop in the first step? Or the name of some other folder on the Mac that you are working with?

    Thanks,

    Scott McGuire
    Fetch Softworks

    Posted 3 years ago #

  • Dan Member

    Scott,

    Thanks for the response. Generally it would be the name of the folder where the source files originated. The advantage of having a temp file on the desktop in which to put the archive is so that it can act as a visual cue on the completion of the automator application. If the temp folder is not deleted then the action failed somewhere. What I was trying to do before was just but a new directory name into the "folder entry" on the Fetch Action. It would be really nice if the folder could be put in right there and the application would create folder if it did not exist.

    Dan

    Posted 3 years ago #

  • Scott McGuire Administrator

    Hi Dan,

    While there are several ways to do what you want, I think the simplest way would be to create a folder with the name you want on the Mac, move the files to that folder, and then just upload that folder to the place you want it on the server.

    So, for example, if you want your files to be in a folder named "January19" inside the folder "ArchiveFiles" on the server, you'd tell Automator to create a folder named "January19" on the Mac and move the files to it, and then in the Fetch Upload Files action, specify the folder ArchiveFiles as the "initial folder" to use. Then the Fetch Upload action will upload the folder "January19" to "ArchiveFiles" and you'll be all set - you don't have to worry about creating the folder on the server.

    Does that make sense, and sound like it would do what you want?

    Thanks,

    Scott McGuire
    Fetch Softworks

    Posted 3 years ago #

Reply

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