Showing posts with label automator. Show all posts
Showing posts with label automator. Show all posts

Saturday, December 31, 2011

Dropbox Automator IFTTT

Dbautomator
A new tool hit the web this past week that really caught my eye since much of my device ecosystem is connected via Dropbox.  Dropbox Automator is a cloud service that uses the Dropbox API to monitor folders and have file additions trigger a number of automation scripts powered by Wappwolf.  IFTTT, IF This Then That, is a fundamental principal to any piece of code and this reminds me of Automator on the Mac how you build the logic.

The workflow is simple:
  1. Go to dropboxautomator.com
  2. Log into your Dropbox account and authorize Wappwolf (developer)
  3. Choose a folder… (pick a folder to monitor when a file is added) … NEXT
  4. Choose an action(s)…
For Documents you can…
  • Convert to PDF (powered by conv2pdf.com)
  • Summarize
  • Translate
  • PDF to TXT
  • Upload to Slideshare
  • Sign PDF (electronic sig)
For Pictures you can…
  • Upload to Facebook or Flickr
  • Downscale, Rotate
  • Add text, Photo effects, Stamp logos/maps 
  • Stamp a "Dislike" on the image
Any file you can…
  • e-mail
  • Zip
  • Save to another Dropbox-folder
  • Rename
  • Upload to FTP
  • Encrypt/Decrypt
Update….
  • Tweet
  • Set Facebook status
My favorite part of this service is that actions can be coupled.  For example, you can drop a picture into a folder, Dropbox Automator can then stamp your logo in the lower right (or wherever), upload the photo to an FTP site and you can place it in your blog.  If you spend enough time looking over the list of baked in automation scripts, there are a number of solutions that can bridge gaps in many of the services you currently use.

If you are a developer, you can build scripts by creating a SOAP webservice (example code provided as well) and add it to the Wappwolf.com action marketplace.  Manuel Berger is the guy behind the service and I think this is a great start to an awesome idea.  

Couple of important mentions in my testing so far.  
  1. CREATE YOUR FOLDERS FIRST!  You must log into Dropbox and create a folder to use before starting your automation since the current build of Dropbox Automator does not allow you to create folders.  
  2. BE PATIENT!  There is a slight delay in the trigger so be patient!  When the automation completes, the service will create two sub folders in your trigger folder (processed and result).  This takes the file you add, moves it to the processed folder and the result will be placed in the "result" folder when complete.  I am assuming this is done to avoid any looping issues that could come up. 
So try it out and start automating…  ~Lou

Dbauto-folderDbauto-action

Saturday, August 14, 2010

Posting Tweets via Command Line

After spending some time in the past week updating my Linux server and spending a lot of time in the command line, I wanted to take a look at methods to post to Twitter.  Since there are many parallels in the way you communicate to StatusNet, I decided to play with the options I found for twitter and modify them to post to StatusNet.

The most common method was using cURL, a free, cross-platform, command line utility that is already on most Unix based systems. Once installed you can post using this format:

'curl -u username:password -d status="Rockin' the tweet with cURL" http://twitter.com/statuses/update.xml'

Now that we know the setup you can type in your own "username" and "password" in the script and type your status between the "".  Rudimentary, but you get the idea.  I am no programmer, but I do enjoy taking snippets and adding automation to them, whether that be with an interface or patching piece together to get to the end result.
 
Screen_shot_2010-08-14_at_2
I like the simplicity of a little Mac app called Automator.  It is a way of graphically taking snippets or actions and daisy chaining them together to perform tasks.  I ties into many other applications on the Mac but also can be tied to scripts and other command line tools. 

I added a task to ask for text, which when the app runs it pops up a dialog and then passed it to a shell script task.  In the shell I used the "Pass input as arguments" and typed in my username and password into the cURL script I pasted in.  I replaced the actual post text between the "" with '$@', passing the entered text from the prompt into the script and running it.

I am going to play with a few other ways to automate this but I will leave it as a geek tool and leave the beautiful applications to be built by coders! ~Lou

Screen_shot_2010-08-14_at_2Screen_shot_2010-08-14_at_2