Your best friend for file transfer.

Fetch application logoFetch

"put into" attributes in Droplet Shortcut (5 posts)

  • Started 6 years ago by trinkel
  • Latest reply 6 years ago from Scott McGuire
  • trinkel Member

    I would like to create shortcut droplets for a few customers. I need to be able to set the format to AppleSingle for the uploads. I've tried adding the binary format attribute to the put into command in the droplet's "main" script, but it doesn't seem to use the command.

    Is this something that is possible?

    Tim Rinkel

    Posted 6 years ago #

  • Scott McGuire Administrator

    Hi Tim,

    The droplet doesn't use the "put into" command in its main script unless there's an error when it tries to use the "drop" command. You can force the droplet to use the "put into" command by editing the "on open infiles" section to the following:

    on open inFiles
      set theURL to GetDropletURL() of me
      tell application "Fetch"
        put into url theURL item inFiles format AppleSingle with immediate return
      end tell
    end open

    Another option is to create a droplet with Automator; the Fetch Upload Files Automator action does support specifying the upload format, and you can easily create an upload droplet by creating an Automator workflow that contains just an Upload Files action, and saving that workflow as an application.

    Plus you could add more actions to do something else with the file after they're uploaded - add some text to the names of uploaded files, change permissions, or even send an email that files were uploaded (if your customers use an email client that has Automator support).

    If you aren't familiar with Automator, you can learn the basics by reading the Introduction to using Automator with Fetch topic in Fetch Help (or just click the link here). Then the More examples of using Automator with Fetch help topic discusses creating an upload droplet with Automator.

    And I'll note that you requested a way to create droplets with a different upload format in our feedback database, so we can consider it for future versions of Fetch.

    Please let us know if this helps, or if you have any questions.

    Thanks,

    Scott McGuire
    Fetch Softworks

    [This message has been edited by ScottMcGuire (edited 05-31-2007).]

    Posted 6 years ago #

  • trinkel Member

    I haven't heard back from the client yet, but I'm guessing she's at 10.3.9. Looks like I'm playing with the script . . .

    And of course I have to make it more complex than it needs to be :)

    Any way to get a manifest of the files uploaded by the put into? I've kind of played with the result, but all I'm getting is the transfer id.

    T.

    Posted 6 years ago #

  • trinkel Member

    And another thing . . .

    What is the best way to create a new directory on the remote server?

    Thanks

    T.

    Posted 6 years ago #

  • Scott McGuire Administrator

    Hi Tim,

    To create a new folder in AppleScript, you can use the following command:

    make new remote folder with properties {name:"foo"}

    Getting a list of files in Automator is easy, we have the Generate Fetch Item Report action. :-) But if Automator is not an option, please contact:

    bugs at fetchsoftworks dot com

    with a short description of what you're trying to do (and the script as you have it now) and we may be able to help you out with an AppleScript to do that.

    Thanks,

    Scott McGuire
    Fetch Softworks

    Posted 6 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.