Help me build a Workflow

by Volker Weber

ZZ113E0D8F

I have this nice Workflow app. And I was never able to put it to good use. Can you help me build a workflow? What I need is an image upload to vowe.net.

This is what I do on my Mac:

  1. Drag a photo to ImageWell
  2. Let ImageWell create a random name
  3. Resize the image to 640px width
  4. Push the image via SFTP to vowe.net
  5. Copy the image URL to the clipboard like this

<img src="//vowe.net/images/ZZ113E0D8F.png" alt="ZZ113E0D8F" width="640" height="480" />

Pick image, resize and convert is easy. I will also be able to do something like convert only if PNG and filesize > 150 kB. Creating a random name, putting the URL on the clipboard and uploading to vowe.net is where I fail.

Comments

I am using Linux and I do something like this with xclip

echo '{% picture '/$YEAR/$YEAR$MONTH-$file' alt="" %}' | xclip -sel clip


maybe there is an "xclip" for OSX too

Hagen Bauer, 2016-07-08

Nice. N/a on iPad.

Volker Weber, 2016-07-08

No complete recipe, but some ideas:

Uploading to ftp/sftp requires a third party app (Transmit).

A workaround could be running Dropbox on the server and settting up a shared folder between your private Dropbox and the server's one, then use that folder as a source for the images (e.g. by symlinking it to somewhere below your document root).

Random name should be easy, there's a random number generator and also a calculate hash function in Workflow.

You'll need a few variables (e.g. the random file name and the base URL of your web server).

Jochen Schug , 2016-07-08

Here's a draft for some of the pieces: https://workflow.is/workflows/07685a13eee34eac894746c97293a89b

Jochen Schug , 2016-07-08

man pbcopy

Martin Kautz, 2016-07-08

good ol' ftp is available on the mac terminal, just checked. It has been too long with the syntax, but this is straightforward and a lil' shell file can wrap you the upload, passing the filename.

To copy sth, pbcopy is your friend on OSX...

echo "hello" | pbcopy

Puts "hello" on clipboard.

Dates for the filename doesn't seem too bad, for something more random, the terminal is your friend again:

"uuidgen | md5" or " uuidgen | tr -d '-' "

gives you strings like 0613d58c548629a8aa90432613246b29 or 4377EBA4CE0442A0B0345A06863A6DC1

Frank Quednau, 2016-07-08

@Frank: Volker wants to run the workflow on an iPad. Did not get that either...

Martin Kautz, 2016-07-08

+1 for Transmit. +1 for the hash function. I think I can cobble something together.

Dennis Wegner, 2016-07-08

Please have a look and let me know if this works for you:

https://workflow.is/workflows/a8788fd674b047c785874400875cfed4

You should probably provide a favorite Transmit target so you won't have to choose your upload folder manually each time...

Dennis Wegner, 2016-07-08

Transmit was the missing piece. Thanks Jochen and Dennis. It's working and I just need to make it even nicer.

Volker Weber, 2016-07-08

Recent comments

Andreas Braukmann on Sonos Play:3 :: Nicht kaufen, nicht warten at 00:30
Volker Weber on Themenwechsel at 23:40
Volker Weber on Sonos Play:3 :: Nicht kaufen, nicht warten at 23:13
Karl Heindel on Themenwechsel at 23:12
Volker Weber on Apple Music :: Erfolgreicher Umstieg at 21:51
Marco Foellmer on Apple Music :: Erfolgreicher Umstieg at 21:42
Frank Heurich on Sonos Play:3 :: Nicht kaufen, nicht warten at 21:07
Volker Weber on Sonos Play:3 :: Nicht kaufen, nicht warten at 20:16
Volker Weber on Apple Music :: Erfolgreicher Umstieg at 20:14
Michael Jäckel on Apple Music :: Erfolgreicher Umstieg at 20:06
Felix Binsack on Sonos Play:3 :: Nicht kaufen, nicht warten at 18:46
Volker Weber on Apple Music :: Erfolgreicher Umstieg at 16:25
Volker Weber on Sonos Play:3 :: Nicht kaufen, nicht warten at 15:01
Dirk Steins on Sonos Play:3 :: Nicht kaufen, nicht warten at 14:19
Michael Jäckel on Apple Music :: Erfolgreicher Umstieg at 13:50
Axel Borschbach on Apple Music :: Erfolgreicher Umstieg at 11:29
Jens Nullmeyer on Apple Music :: Erfolgreicher Umstieg at 11:18
Volker Weber on Themenwechsel at 10:59
Timm Caspari on Themenwechsel at 10:54
Hanjo Iwanowitsch on Don't lie to me at 23:01
Volker Weber on Maybe phones have gone too far :: Genius review of the Google Pixel 3 at 19:45
Nick Daisley on Maybe phones have gone too far :: Genius review of the Google Pixel 3 at 19:29
Martin Kautz on Reverse engineering a Huawei phone at 19:11
Henning Heinz on Don't lie to me at 19:10
Volker Weber on Reverse engineering a Huawei phone at 18:18

Ceci n'est pas un blog

I explain difficult concepts in simple ways. For free, and for money. Clue procurement and bullshit detection.

vowe

Contact
Publications
Stuff that works
Amazon Wish List
Frequently Asked Questions

rss feed  twitter  amazon

Local time is 04:08

visitors.gif

buy me coffee