Actions

Comments

78 Comments »

  1. very nice, too bad it only uploads files and no directories. Looking forward to the next version. An option to ask for server, directory and username and keychain support would be impressive of course :)

    Comment by Bart — May 20, 2005 @ 4:15 am

  2. Keychain support would indeed be nice! Currently it kind of compromises the security of your FTP details, as they can be read by anyone who can open your workflow.

    Currently, using AppleScript, I don’t see a way to efficiently write to and read from the Keychain. Keychain support is – last time I checked anyways – quite buggy in AppleScript. Please, someone, release Keychain Automator actions! :)

    Comment by Peter Dekkers — May 20, 2005 @ 5:17 pm

  3. Hallo Peter. Thanks for writing the FTP upload action. I too am looking forward to the next version. Folder support would be excellent.

    I am having trouble sending files to any dirctory under the main directory. I am working on a virtual sever which may effect … Any ideas. I get a failed ftp upload notice with lots of zeros.

    Thanks

    Comment by Rob Hudson — May 22, 2005 @ 9:18 am

  4. Another thought Peter ( having solved that problem with sub directories (it was the trailing slash)).

    How about an option to make a directory on the server to drop the selected files in and the url in the clipboard addressing the the new directory??

    Comment by Rob Hudson — May 22, 2005 @ 9:56 am

  5. Hi Rob. Yeah, that would be the plan, to let the script create a directory, put the files into it and copy the URL to the directory to the clipboard.

    I have also noticed a slight flaw in this workflow. If you select a file, right click it and select the workflow, and then quickly select another file BEFORE the workflow has been able to detect the ‘selected file in Finder’, then it will upload the second file you selected. This is a flaw of the actual Automator action, to be exact. It just means you have to always wait until it starts executing the AppleScript before selecting another file.

    Also, the next version of the script will use the FTP command rather than CURL for the uploads. This will enable me to add folder support, and also enable me to add support for SFTP.

    Comment by Peter Dekkers — May 23, 2005 @ 4:35 pm

  6. I always get this error when trying to run the script:

    curl: (9) Uploaded unaligned file size (0 out of 78521 bytes)

    The file size shown varies according to the actual file size, of course. I can upload the same files to this server using RBrowser Lite and the same credentials.

    Any ideas what this means?

    Comment by Carlos — May 30, 2005 @ 6:06 pm

  7. Hey Carlos,

    I’ve no idea at present. It should get fixed int he new release, though, as that will not use CURL anymore!

    Comment by Peter Dekkers — June 5, 2005 @ 6:35 am

  8. Hallo Peter. Just wondering when that new version will be available.

    Comment by Rob Hudson — June 5, 2005 @ 10:24 pm

  9. Hi Rob. I just found out that in the new Automator that will get released by Apple soon, you will be able to create actions using shell script. This will make it so that I can make the workflow much much cleaner and easier to use. So I’m waiting for that. I’d say 3-4 weeks tops after the release of that new version, I’d say.

    Comment by Peter Dekkers — June 9, 2005 @ 6:02 pm

  10. Thanks Peter. One of the best features of your script is the copying of the URL to the clipboard. Hope this doesn’t dissappear in the new version!

    Comment by Rob Hudson — June 10, 2005 @ 10:54 pm

  11. It surely won’t, Rob!

    Comment by Peter Dekkers — June 13, 2005 @ 5:18 am

  12. Great job Peter!

    Comment by Simon Soenens — June 30, 2005 @ 9:03 am

  13. A wonderful plugin, Peter. I’ve never used Automator, but realized today that I was forever opening Cyberduck, uploading a series of images to the same directory, and closing it. A quick google yielded this entry on Automator World, and three minutes later, I was saving bundles of time.

    Thanks for a great intro to Automator.

    Comment by Waldo Jaquith — July 4, 2005 @ 12:46 pm

  14. I tried using the script, but when it runs, I keep getting this error: “No result was returned from some part of this expression. (-2763)”

    I copied the script exactly and changed my ftp parameters. I checked the ftp parameters in Terminal, and they are good.

    Any ideas?

    Comment by Russell — July 8, 2005 @ 6:57 am

  15. Russell, make sure that you run the Workflow with items selected in the Finder. The error messages are a bit cryptic, sorry for that.

    Normally if you use it as a Finder plug-in, and you select one or more files, right click and choose the Workflow from the menu, it should work without giving that error.

    Comment by Peter Dekkers — July 10, 2005 @ 4:40 pm

  16. Any other ideas of what might be causing this error? I tried selecting a file on the desktop and running the script, and I still get this error. I also tried passing the file using the Automator’s “Get Specified Finder Items”, and that didn’t work either. Same error. Any thoughts?

    Comment by Russell — July 12, 2005 @ 7:12 am

  17. Well, OS X has updated and so has Automator, so the best solution would be to hang tight for a few days while I tinker on a new version. ;)

    This one will have a proper interface and support for FTP and SFTP. It’ll also allow you to upload folders.

    Comment by Peter Dekkers — July 12, 2005 @ 6:31 pm

  18. Right, juts a quick message to let you know that I’m doing the last bits on the new version. It will only do FTP, no SFTP.

    If you want to do SFTP, maybe check out the ‘Upload with SCP’ action here: http://www.automatorworld.com/2005/07/15/upload-with-scp

    Comment by Peter Dekkers — July 15, 2005 @ 9:57 am

  19. Okay, the new version is up! Download away, and feel free to leave any comments.

    Comment by Peter Dekkers — July 15, 2005 @ 3:29 pm

  20. Oh one little note: the URL does no longer get copied to the clipboard in this version, for the simple reason that Automator has a Copy to Clipboard action that you can use for just that.

    The included example workflows will show you how that works.

    Comment by Peter Dekkers — July 15, 2005 @ 3:46 pm

  21. A handy action to place right after this one in a workflow is the Make HTML Tags action.

    http://www.automatorworld.com/2005/07/17/make-html-tags

    Using it that way, you can easily post files on websites.

    Comment by Peter Dekkers — July 17, 2005 @ 10:18 pm

  22. Peter, just wanted to let you know the new script is working nicely. Thank you.

    Comment by Russell — July 19, 2005 @ 8:43 am

  23. Great! Thanks.

    Comment by Peter Dekkers — July 19, 2005 @ 11:35 am

  24. Another quick question–I’m trying to use this script behind an ftp proxy, and the ftp proxy server login format is like this:

    Server: proxyserver.com (the proxy server) User Name: username@outsideserver.com password: password

    I’ve tried connecting, but I keep getting a “Workflow Execution Failed” error. I can run Terminal and verify the ftp connections are good, but the workflow isn’t connecting. Any ideas on how I can debut this? I was wondering if the script you created can handle usernames like “username@outsideserver.com”.

    Thanks, Russell

    Comment by Russell — July 20, 2005 @ 12:17 pm

  25. If it helps any, I checked the Log and it says, “An error (255) occurred in Upload to FTP.” Not sure what error 255 is.

    Comment by Russell — July 20, 2005 @ 12:19 pm

  26. Is this current version useable with SFTP?

    Comment by stevietheb — July 21, 2005 @ 2:41 pm

  27. I’m confused by the versions. This lists 1.1 but downloads 1.0. Your site still lists 1.0. I am having troubles with the workflow I made from it and was hoping to get the latest version. Very nice idea if I can get it to work.

    Comment by miller — July 22, 2005 @ 11:14 am

  28. Russell, I’ll look into that for you.

    Stevietheb, no it isn’t as of yet.

    Miller, there is no version 1.1 yet. I hadn’t noticed it on this page, but it isn’t quite right. Version 1.0 is the latest version. What troubles are you experiencing with the workflow?

    Comment by Peter Dekkers — July 22, 2005 @ 11:33 am

  29. My bad; there was an update from the original one, so I foolishly thought it was 1.1. Fixorated.

    Comment by Steve — July 22, 2005 @ 1:03 pm

  30. workflow action continues for some time and then an error is given of the form: FTP Upload error: Could not upload file: http://server.com/.file.ext with the . added to the original file name. Workflow continues for many minutes after this error and eventually quits. A file of zero kb is uploaded to the server.

    Comment by miller — July 22, 2005 @ 1:45 pm

  31. Steve – thanks! :)

    Miller, does this error still occur when you choose to not upload invisible files in the action’s settings?

    Comment by Peter Dekkers — July 23, 2005 @ 7:23 am

  32. This error occurs when I choose to not upload invisible files in the action’s settings. When I choose to upload invisible files it hangs completely.

    Comment by miller — July 23, 2005 @ 7:25 pm

  33. Russell, I’ll definitely be adding proxy support in the next version, as well as a way to force passive transfers.

    I’m still trying to figure out what the issue could be that you’re experiencing, Miller.

    Comment by Peter Dekkers — July 24, 2005 @ 7:48 am

  34. Okay, that new version is up.

    Russell, I haven’t gotten any wiser about the error you’re getting. I’ve ruled out it having anything to do with invisible files, though, I think.

    Comment by Peter Dekkers — July 24, 2005 @ 11:58 am

  35. Russell, I meant Miller ;)

    Comment by Peter Dekkers — July 24, 2005 @ 11:59 am

  36. I tried it on a different computer and it works fine. Sorry for the trouble as I guess it has something to do with my setup. It worked very nice and quickly when it worked. Thank you for writing it.

    Comment by miller — July 24, 2005 @ 8:31 pm

  37. Hey, no problem Miller. I hope you find the cause soon.

    A friend of mine once had a corrupt ‘Get Selected Finder Items’ action. My action owuld not work on his computer, until we saw it was actually the other action that was errorring. I e-mailed him my copy of the ‘Get Selected Finder Items’ and he overwrote his copy with mine. A reboot later his problems were over.

    Comment by Peter Dekkers — July 26, 2005 @ 8:16 am

  38. I am having the very same problem as miller and have not solved it. I’m using it as a Finder plugin in this instance. Any news on what might be the problem?

    Comment by Morgan — August 1, 2005 @ 2:24 pm

  39. I’ve no idea, Morgan. Could you maybe tell me what version of OS X you have? Have you yupdated to 10.4.2 yet? Maybe that could be it, I haven’t tested the action in 10.4.0 or 10.4.1 yet. I just assumed it would work.

    Comment by Peter Dekkers — August 2, 2005 @ 11:53 am

  40. It seems that indeed version 10.4.1 of OS X is required for the Upload to FTP action to work.

    I haven’t tested it in 10.4.0 myself, yet, but reports from users seem to indicate that this is indeed the case. Confirmations of this would be appreciated!

    Comment by Peter Dekkers — August 4, 2005 @ 8:02 am

  41. I’ve got 10.4.2. It just creates an empty file on the server (which proves it’s not a login or password fault) and the error is:

    ‘FTP Upload error: Could not upload file:…’

    Comment by Morgan — August 5, 2005 @ 11:51 am

  42. It’s OK! I had to force PASV. It’s odd because FTP transfers to my server tradtionally never work with PASV, so I never thought to enable it.

    It seems to work now. Thanks.

    Comment by Morgan — August 5, 2005 @ 11:57 am

  43. Great. I’m happy it works for you.

    Comment by Peter Dekkers — August 5, 2005 @ 1:11 pm

  44. Hi Peter. Refering back to comment 5 in this bulletin, is their a make directory command planned for the next version?? It would be very handy….

    Thanks, Rob

    Comment by Rob Hudson — August 14, 2005 @ 8:45 am

  45. Hi Rob. To create a directory you can simply upload an empty directory to the server. Is that an answer to your question?

    Comment by Peter Dekkers — August 16, 2005 @ 7:59 pm

  46. Hi Peter. Not quite sure. I have an conststructed an elobarate action – batch jpg and upload to the sever. I am not sure where in the workflow and how to, create a directory on the server where I want the images to ultimately go. Maybe I a missing something here?

    Comment by Rob — August 18, 2005 @ 5:05 am

  47. Oh no, create it locally, then upload the directory – empty as it is – to create it.

    Comment by Peter Dekkers — August 31, 2005 @ 7:03 pm

  48. Hi Peter. Great app! I was wondering if it’s possible to automate the upload at a timed interval? For example, to upload an ever-changing text file every 30 minutes? Thanks!

    Comment by kim — September 10, 2005 @ 7:05 pm

  49. Hi kim. Yes you can! First you create a workflow that just uploads the file. Then go to the File > Save As Plug-in menu item. From the dropdown box choose iCal Alarm and type in a name. Then save it.

    iCal should then open and it should show your workflow as an entry in the calendar. You probably at this point want to make a separate calendar just for your action, as we’ll be duplicating it a couple of times. To do this, create a new calendar and drag your entry onto the newly created calendar. It should change to the colour of the new calendar.

    Now to make it run every 30 minutes. Normally the closest frequency you can set for a repeat in iCal is 1 day. Since you want it every 30 minutes, you should duplicate the entry twice for each hour and set its time in 30 minute increments. Then, you can set each of the entries (you should have 24*2=48) to repeat each day.

    And there you go. This is quite a lengthy process you might say, but it’s the only way to do it with standard OS X components right now, that I can think of (not considering crontab).

    Another way would be to use this: http://www.automatorworld.com/2005/07/28/script-timer-23-released

    Comment by Peter Dekkers — September 13, 2005 @ 6:04 pm

  50. […] Automator World is dedicated the Mac OS X 10.4 (Tiger) scripting application Automator. For example, they have an action to upload files to an FTP server. […]

    Pingback by em-brof » Automator World — November 24, 2005 @ 3:51 am

  51. Oh you just put the images into a folder locally and upload the folder to the server, thus creating it on the server.

    Does that make more sense? Feel free to e-mail me your workflow at automatorworld.com[at]editkid.com and I’ll have a quick look?

    Comment by Peter Dekkers — January 5, 2006 @ 1:17 pm

  52. Oh sorry, I just repeated myself there. I got confused by the order of the comments. Please disregard my previous comment ;’)

    Comment by Peter Dekkers — January 5, 2006 @ 1:20 pm

  53. This is great!

    I had the same problems as Miller & Morgan but changed force PASV to yes & works fine :)

    Comment by Jono — January 19, 2006 @ 4:54 am

  54. If you have v1.4 installed, please upgrade to v1.5. Due to carelessness a few input fields got disabled in 1.4.

    Comment by Peter Dekkers — January 21, 2006 @ 6:06 am

  55. Thanks, installed.

    I created a custom workflow using the ‘Upload to dropbox.workflow’. Will I need to update my workflow with the new version, or will simply installing the ‘Install Upload to FTP’ package be enough?

    Comment by Jono — January 22, 2006 @ 1:56 am

  56. Hi Jono. Simply installing should be enough, yep.

    Comment by Peter Dekkers — January 25, 2006 @ 4:53 am

  57. […] So at my day-job I’ve been fiddling a bit with Apple’s “Automator” tech to try and improve our imaging workflow. Today it occurred to me that maybe it could do me some good also. So I played around a little bit until I discovered this extremely cool Automator action called Upload To FTP – it’s fantastic, I made a little applet which will upload to my blog whenever I save something to my blogging folder on my machine – in practice that means, I find the picture I want to show you, do a little photoshop work to it as needed, hit one key, and boom it’s on my server! […]

    Pingback by Automator geekery | Charley’s Photography Blog — March 11, 2006 @ 4:07 pm

  58. […] And there are many actions and workflow available : like the very usefull Upload to FTP from Automator World. MacOSX productivity Tool […]

    Pingback by Bruno’s blog » Blog Archive » OSX productivity tool : Automator — April 11, 2006 @ 8:05 am

  59. when i run this it start to move the file then the upload fails on the server has the name of the file but not data?

    Comment by jim raines — May 25, 2006 @ 8:16 am

  60. To the developer: the action’s Version field still reads 1.1 when viewed in the Finder. Minor quirk, really.

    Comment by Eric3 — June 3, 2006 @ 7:35 pm

  61. i can´t get this to work at all.. I´ve tried every possible path and setting… dont even get any error handling. any ideas?

    Comment by mos — July 4, 2006 @ 10:07 am

  62. It owrk, great! BUT… .txt files when uploaded do not appear to be fully readable. We need an additional function to set priv;leges on uploaded files.

    Anyone else have this problem. I’ve tried loads of different ISP accounts and still find .txt files are ‘inaccessible’

    Comment by James Rothschild — September 21, 2006 @ 8:47 am

  63. Hello, I can’t get this workflow working properly. Everytime I try to upload something to my FTP I always get this error “FTP Upload Error Could not upload file: http://hem.bredband.net/b333989/Pics/test.png

    Can somebody tell me why, I really want this workflow to work!

    Comment by mptre — October 7, 2006 @ 1:20 pm

  64. Peter, very good of you to be so responsive to questions… My wife wants to upload voice recordings, stored in iTunes, to a transcription service. Any ideas on how to set up actions “upstream” from yours, so that she can highlight songs in iTunes, then pass those selections to your action? Thanks very much in advance.

    Comment by Paul DuV — November 11, 2006 @ 10:35 pm

  65. […] Automator World : Archive » Upload to FTP v1.5 […]

    Pingback by Synovian » Blog Archive » Awesome Automator Script — January 14, 2007 @ 2:09 pm

  66. Very cool. Would love to see the option to have a email generated stating that the following files have been uploaded to this ftp site. As a confirmation.

    Comment by Terry — March 20, 2007 @ 11:22 am

  67. had a little struggle with my firewall getting started, but once I got out of my own way, it worked great. thanks!

    Comment by Dwight — May 29, 2007 @ 11:47 am

  68. @mptre et al This action is great, however if you have problems getting it to upload then check the “Force PASV” option. It takes care of firewall problems (at least, it did for me).

    This is a great tool and I’m definitely putting it into future scripts.

    Comment by Brent Anderson — June 12, 2007 @ 5:47 pm

  69. Any idea on the 255 error? I am getting it every time I run the script… I tried uploading using other FTp programs with same settings and they worked just fine…but obviously I want the Automator workflow to work.

    Thanks in advance!

    Comment by KnightRyder — September 20, 2007 @ 4:37 pm

  70. I keep getting the same error 255 message that other people have mentioned. My other FTP programs connect fine with the exact same settings. Does anyone know what this error means? If this problem was fixed it would be a great action!

    Comment by James — December 11, 2007 @ 6:13 pm

  71. SFTP?

    Comment by fishy — April 7, 2008 @ 6:31 am

  72. This is a great automator app, but I wonder why ftp is not built into the finder suite of automator in Tiger and Leopard.

    Comment by PTNYC — April 29, 2008 @ 2:25 pm

  73. Will there be a version supporting SFTP in the future or is this automator action “dead”?

    Comment by Yoram — August 10, 2008 @ 8:46 pm

  74. Hi people, sorry for the long reply wait time, I don’t get notified when people post here.

    On the subject of SFTP/SCP, check out the “Upload with SCP” action. It’s out there.

    The 255 error, can’t say I’ve seen it before. Not sure, it might be a problem specific to your server type. It’s hard for me to test this.

    Terry: you can send emails with the “New Mail Message” action. It comes standard in OS X 10.5+.

    Paul DuV: sorry, I’m not sure how to pass iTunes songs to Automator, sorry. It might be possible to get the file path out of iTunes with Automator with some actions. It’d require some detective work.

    Cheers! Peter

    Comment by Peter — October 27, 2008 @ 5:21 pm

  75. Hi will this export as an application for another computer ( without the plugin?) or is the plugin required?

    Comment by ian — October 28, 2008 @ 10:26 pm

  76. Hi, I also, like MPTRE (#63), I always get this error “FTP Upload Error Could not upload file: Backup.zip” My FTP setup works well with other FTP software. Why not this one ? Thanks.

    Comment by Martin — April 8, 2009 @ 3:12 pm

  77. Does this work with 10.6? I can get it to upload when testing within Automator but it doesn’t do anything when configured as a Folder Action.

    Comment by Smudge — September 20, 2009 @ 1:21 am

  78. This action is extremely slow in Snow Leopard. Takes half a minute to upload one file (when it works at all), compared to 5 seconds in Dreamweaver or Cyberduck (yes, my ftp settings are correct). Also, doesn’t seem to be able to save as a Finder extension.

    Comment by Julian — February 8, 2010 @ 1:24 pm


Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>