r/workflow • • Jun 04 '18

Apple's "Shortcuts" is literally Workflow. SO happy!

194 Upvotes

Title says it all.


r/workflow • • Mar 22 '17

Apple acquired Workflow!

154 Upvotes

Just heard this news, Apple has acquired the Workflow! Idk if this good news or not. I hope they don't shout down the app.


r/workflow • • Mar 11 '17

The full Workflow Documentation

Thumbnail
workflow.is
140 Upvotes

r/workflow • • Jun 06 '18

Speculation *Very* technical details about Workflow‘s successor app Shortcuts. Gives you an idea how powerful it will become if app developers adopt it.

Thumbnail
developer.apple.com
126 Upvotes

r/workflow • • Sep 17 '18

Transitioning to r/shortcuts! Head there with questions about workflows/shortcuts from now on

104 Upvotes

Hey friends,

I've been working with the mods of r/shortcuts to join forces so that everyone can keep talking about workflows now that they are part of the Shortcuts app.

Head on over there from now on with any of your requests and the community/other moderators there will help out so everyone can learn this fun new tool that Apple's supporting.


r/workflow • • Aug 31 '18

Video Demo of my commute shortcut using the updated dictate feature in Shortcuts. 99% voice activation.

103 Upvotes

r/workflow • • Mar 23 '17

Apple, please don't kill this.

99 Upvotes

Dear Apple,

I'm one of your certified consultants. You've entrusted me to care for your customers outside of your stores. Please, please allow this app to remain as useful to me and all of us as it has been.

I use this app for almost every business process I have. I've made email campaigns, tracked my mileage, created a customer database, even a simulated ai. I use it to generate and save invoices for my consultantcy. I've made workflows to capture a bag full of USB drives for external photo documentation and sorting to help a holocaust survivor create a catalogue of their family photos from Europe.

I use it for my kids' spelling test practice. I made a bingo card generator for one of their birthdays that acted as the caller and card printer.

I'm sure that many users here have similar stories of the wonderful things done with this app, so please, please let us keep using it. Please improve on it, but don't let it become abandoned. I know it sounds silly to be this attached to an app, but it let me do things with my devices that nothing else could. I really don't want to lose that.

I appreciate your consideration on behalf of our community of users.


r/workflow • • Jun 13 '18

Exciting writeup of the new Shortcuts app by Federico

Thumbnail
macstories.net
94 Upvotes

r/workflow • • Feb 09 '17

Workflow 1.7 Update introducing "Magic Variables"

88 Upvotes

r/workflow • • Oct 23 '17

Workflow to open Reddit links in Apollo

Thumbnail
workflow.is
87 Upvotes

r/workflow • • Jul 12 '18

Over 50 Workflows available by Rosemary Orchard

82 Upvotes

r/workflow • • Jul 05 '18

Apple releases Siri Shortcuts Beta (devs only)

Thumbnail
macrumors.com
76 Upvotes

r/workflow • • Apr 14 '18

Workflow Cut, copy & paste actions

74 Upvotes

Hi there,

I’ve made probably a really useful workflow that can cut, copy and paste actions between workflows. Read on!

But first

DISCLAIMER

You are solely responsible for your own workflows. This workflow can damage other workflows if you overwrite them when asked by the Workflow app. I am not responsible for any loss or other damage, which is a direct or indirect result of executing my workflow.

Features

Copy or cut actions from a workflow and paste them in the same, another or a new workflow. (It seems simple, but under the hood it’s not). You can also filter the workflow selection list by some key words. Just enter them in the first Text action. If you enter a second line, it will be used for filtering the target workflow list and the first line for the source workflow list. There is also an update checker built in. To invoke it, open the CopyPaste Actions workflow, scroll down to a comment action describing this feature (its near the top). It will check against this post.

How to install

  1. Run the downloaded workflow, it will import two other workflows. It’s basically my Install Workflow

  2. You can delete the downloaded workflow when both workflows CopyPaste Actions and CopyPaste Action Parser are imported and can be opened

How to use it?

  1. Run the workflow CopyPaste Actions like you run any other workflow

  2. A list of your workflows will be presented, ordered A-Z and a-z

  3. Select your workflow

  4. A list of the actions of that workflow will be presented (or an error, if something went wrong)

  5. Choose the actions you want to cut or copy. If you choose one of the If, Choose from Menu, Repeat (with Each) actions, the workflow will automatically select all actions inside that block and the block itself. If you choose a menu item from Choose from Menu, it will only select its contents. Likewise it will do it, if you choose the Otherwise action of an If block. If you choose the closing action End ..., the whole block will be selected.

  6. After pressing Done on the Choose Actions List, you can choose between copying or cutting the actions after a short wait. Maybe I will update it sometime, to speed it up

  7. Now you can choose in which workflow you want to paste. If you choose Another Workflow, you will be presented a list of your workflows again to pick the other workflow

  8. As of version 1.2 this step was removed and handled automatically If you have selected an action that includes an UUID and in the target workflow is the same UUID already present, you will be asked, if you want to generate new UUIDs. UUIDs are used with (magic) variables and with the block actions. Its workflows way to keep track, which actions belong together and which magic variable represents which action output. If you have copied one of the block actions, you should generate new UUIDs, unless there is no other block action in the target workflow. If there are two block actions with the same UUID in a workflow, the indent of the second will be broken and if gets executed, workflow will crash. If you only copy actions that contain variables, you should only not generate new UUIDs, when these variables are connected (that is the case if it is the same workflow or the source and target workflow were duplicated or you have already copied another action with the same variable)

  9. At the last step, you have to choose where you want to paste it. You have the options Beginning, Choose... and End. The first and last are clear. If you choose Choose..., a list of the actions in the target workflow is presented again, where you choose one action, after which it should be pasted. The first action in the list with the index 0 is only a dummy item, so you can still paste at the beginning if you’ve changed your mind

  10. You will be notified, if you have to run the workflow once more, if you have cut the actions to another or new workflow.

  11. The Workflow app will now ask you, if you want to override the workflow you have pasted in. As I wrote in the disclaimer, there is the possibility that the imported workflow does not work, but it is your decision to make, if you want to override it. My advice is to have a backup of that workflow somewhere.

  12. If you have chosen to cut the actions to another or a new workflow, the old workflow has to still be modified. Because workflow asks the user, if he wants to override a workflow, it cancels the following imports. As there is the possibility that this happens, I couldn’t chain them together, to import them at the same time. Because of that, the source workflow will be temporally saved to iCloud Drive in /workflow/CopyPaste tmp/ and when you run my workflow again and there is at least one file, it will try to import it in Workflow and delete it in iCloud, so make sure that you don’t save any files in there, or they will be deleted the next time you run my workflow. As it happened sometimes for me that the source workflow didn’t import. So before it gets imported, it will be copied to the iCloud folder /workflow/CopyPaste tmp2/. If you run my workflow a third time, it will find the source workflow in the that folder and ask you, if it was imported successfully. If you choose Yes, it will delete it completely. Otherwise it will import it again and ask you again the next time until you choose Yes.

How does it work?

A workflow is saved as a bplist or binary property list, a standard format on Apple systems. Luckily, using a Set Name action on a workflow with setting the extension to .plist, converts it to a plist, the XML version of the property list. Then I put that into my Javascript and run it to parse the actions (I had a version, where workflow itself parses it, as workflow recognises it as dictionary, but that was super slow. A 350 action long workflow took 480 seconds...). After the actions are chosen, it extracts the first number, the index, from the choosen text items and gets the actions in XML from the plist and creates a version of the workflow that has the selected actions removed. It then inserts the action in the target workflow and puts the XML of the new workflow again in a different Javascript. This time, it encodes it as bplist again, as workflow doesn’t import plist only files... (sometimes, it works without encoding it again, but I don’t know why and when, but at least then reliable, my Installer workflow uses that).

Notes

The list of actions is very simple to understand: Each action is one item in the list. Each item has an index, followed by possibly a parenthesis containing another index, a comma, and an expression that is maybe cut off by an ellipsis. After that follows a : and the action name. If the action has data saved (if you have modified the options of the action) and if I have implemented the extraction parameters for that action, another parenthesis will follow the action name. In that parenthesis is a short version of the selected options, maybe cut off by an ellipsis ("..."), if it is too long for the line. For example:

> 1: Text (something)

> 2: If (= something)

> 3: Text (Yay :D)

> 4 (2, = something): Otherwise

> 5: Text (Oh no :()

> 6 (2, = something): End If

> 7: Show Alert (Title: ◃If Result▹, Body: , Show Cancel Button: No)

Variables are enclosed in ◃ and ▹ and if they have some options set, it will display the same thing as workflow, but like ◃variable name|selected option▹. If you like, you can enter your own characters in the parser workflow except " and \, but the | separator can’t be changed (if you find it in the Javascript, go ahead and change it, but don’t break it ;) )

It took me since October 2017 till today to develop the workflow. I originally had the parsing done in workflow itself, but that took 480s for a 350 action long workflow, and that is definitely too long. It also took me 2 months in that time, to build the information for the parsing of the action options, which is saved as JSON, so it is easily extendable. Also I’ve not included every action in the parsing of their settings, as I don’t own most of the third party apps that have actions in workflow, but their action name will still be displayed. It took me that long, as Workflow doesn’t provide any usable error, if something goes wrong while importing the workflow and I had to find an app that can at least show the javascript console to get some error messages. And it has about 530 actions.

A big thank you to u/JoeReally and u/maskedWrestlurker for testing the workflow! It should work on Workflow 1.7.6+ and iOS 9+, maybe also on Workflow 1.7.5, but I couldn’t test that.

Current version: 1.2.1

Download: https://workflow.is/workflows/c1cc3d6c08224f09a054b5cbe9b9b395

I changed the link, it should work now.

Changelog

v1.2.1 -2018-08-25

  • Fixed a bug that prevented copying a single action with the setting "edit afterwards" set to 0 (thanks to u/iPaddlingMark)

  • Changed show changelog feature to ask from which version the changelog should be shown

v1.2 -2018-08-20

  • Big thanks to u/iBanks3 for providing information about new actions in shortcuts and testing it in shortcuts and also thanks to u/74Y3M for testing

  • Added option to select whether to import in workflow or shortcuts

  • Changed version system to use a file on Dropbox instead of reddit (should be faster)

  • Rewrote action selection. It looks still the same, but it should be much much faster for big workflows

  • Rewrote UUID replacement system to replace duplicate UUIDs on Repeat (with Each), If and Choose from Menu action every time and only on magic variables if two actions try to set it with the same UUID

  • Added option to select all actions by default or ask you every time

  • Fixed bug that installed workflows with an & in the name to discard everything after and including the &

  • Fixed bug that sometimes prevented the importing of a workflow with the error 'The data is not in the correct format'

  • Changed filter system to ask user directly

  • Added ability to enter a range of actions to copy after presenting the actions list (enable «edit afterwards»)

  • 153 actions removed, thanks javascript! 🎉 and now only 500 actions 😄

v1.1 - 2018-05-28

  • Added option to temporarily save to Dropbox or the clipboard if moving actions

  • Added automatic update checks (can be customised: never, once a week, every time it is run)

v1.0.1 - 2018-04-16

  • Fixed version comparison system to handle up to 3 version components, even if it has less than 3. If you check for an update in v1.0, you will get an "You asked for item 3, but the list has only 2 items" error and you have to update manually

  • Fixed wrong JSON information that throw an exception while parsing the workflow actions and therefore returned nothing (thanks to u/KirkAFur)

v1.0

Initial release


r/workflow • • Sep 12 '18

Speculation Apple must plan on releasing the shortcuts app very soon, their newly updated Siri website prompts the reader to download the Shortcuts app right now (and then links you to workflow)

Post image
69 Upvotes

r/workflow • • Mar 07 '18

Workflow update!

Thumbnail
itunes.apple.com
67 Upvotes

r/workflow • • Jun 12 '18

Nice collection of x-callback URLs

64 Upvotes

r/workflow • • Nov 08 '17

Workflow releases version 1.7.7 including iPhone X and iOS 11 support

Thumbnail
workflow.is
64 Upvotes

r/workflow • • Feb 21 '18

I wrote about 8 workflows for today's new Things update that adds URL scheme support

Thumbnail
thesweetsetup.com
62 Upvotes

r/workflow • • May 08 '17

Workflow update 1.7.4 - more than just bug fixes!

Thumbnail
workflow.is
62 Upvotes

r/workflow • • Nov 22 '17

Getting "Real" Development Work Done on an iPad Pro, with the help of Workflow

Thumbnail
medium.com
60 Upvotes

r/workflow • • Dec 18 '14

Workflow Tips for Beginners

59 Upvotes

I realize MacStories has covered an in-depth review for Workflow, so I’m just going to share a few tips I’ve learned while tinkering with this automation app.

If you have other tips to share, please leave it in comment so we can help each other getting the best out of this app.

Read: Workflow Tips for Beginners

Follow Up: Evernote Workflows


r/workflow • • Sep 20 '18

This sub should be made read-only so we can transiton to r/shortcuts

56 Upvotes

r/workflow • • Dec 11 '14

Workflow Workflow: Download YouTube videos

56 Upvotes

Here's a workflow that downloads YouTube videos! It's currently configured as an action extension, so you can trigger it from Safari or even third-party apps that support share sheets that pass URLs. After the download is complete, it passes to Quick Look so you can save it to Camera Roll or Open In another app.

Download YouTube: https://workflow.is/workflows/387973120bde472b80b9c0f5ab90dd51

Here's a variant that downloads the video then converts it to an audio file: https://workflow.is/workflows/0e36b280e68f48fbaa31daec1f559c9d

And of course, dev credit goes to /u/AriX :)


r/workflow • • Aug 17 '18

Workflow I created a simple workflow that lets you get around news paywalls from the share sheet

Thumbnail
workflow.is
52 Upvotes

r/workflow • • Aug 04 '18

Workflow Control Spotify with Siri on iOS 12

52 Upvotes

New Thread

I optimised the Workflows for the now released Shortcuts app now and made some more Workflows. The updates and new Workflows can be found in the new thread!

Introduction

As most of you probably know Workflow already lets you create custom voice commands for Siri in the iOS 12 Developer/Public Beta.

I was working on a few Workflows which allow for some rudimentary control of Spotify. It allows you to play the playlist you played last right from Siri e.g. you could ask Siri "Play Spotify" and the workflow will play whatever you last played in your Spotify account. The other Workflow I came up with so far is to just show the last playlist/song/album/radio was last played in Spotify.

All this relies on the Spotify Web API as you can't work with the Spotify app directly. This means that there will most likely be times where the Workflows behave unexpectedly or plays a track/playlist that was played several minutes ago and the client has not yet synced back to the Spotify backend. An internet connection is required for the Workflows to work.

Setup

To set up any of the Workflows you first need to get a so called refresh token which needs to be derived from an authorization token. The refresh token is used to generate new access tokens every time you use one of the Workflows.

Why not use the authorization token or access token directly? Easy, both of them will expire within one hour after they have been issued by Spotify. The refresh token won't expire and can be used to ask Spotify for new access tokens.

To get the refresh token you need to install this workflow and run it.

It will ask you to authenticate with Spotify and then generates a refresh token which it copies to your devices clipboard. When you install any of the Workflows that actually interact with Spotify the Workflow app will ask you for the code while installing the Workflow so generate the refresh token in advance.

With the refresh token in the clipboard you can now download the Workflows listed below to control Spotify. During the installation they will ask you for the refresh token and in some cases for some additional information.

To set up a Siri shortcut you have to use the Workflow at least once from within the Workflow app for Siri to recognize the Workflow and present you with the Shortcut setup inside of the Settings app.

After launching the Workflow manually and verifying that it works go into the Settings app > Siri & Search > More Shortcuts and find the name of the Workflow you want to add a Siri shortcut for. Tap the + button and hit the record button on the next screen an tell Siri what trigger you want to use to start the Workflow.

Play the playlist/track/album which was last played from your Spotify account

When this Workflow is triggered it will play your most recently played playlist, track or album.

Spotify Radios and the Daily Mixes will only play the track that was last played within the Daily Mix/Radio. The Spotify WebAPI should report the URL of the Daily Mix/Radio but doesn't.

Please note that there is a workaround for playing a playlist in place which is a result of Spotify having no way of allowing the automatic playback upon receiving a playlist URI. The only thing that Spotify will autoplay when receiving a URI is a Song. This means that the workflow will first get the name of your most recently played track (inside the playlist that was played) and will send this URI to Spotify which Spotify will then automatically play. The Workflow will then transfer the playback over to the playlist in the background. Especially on slow internet connections this transfer sometimes does not work. If the transfer does not work you can either ask Siri to show you your last playlist (requires another Workflow) and start it manually or look for the playlist yourself and play it. If someone finds a solution to this I'm more than happy to implement it.

Get it here!

Show your most recently played object in Spotify (doesn't autoplay it)

When this Workflow is triggered it will open your most recently played object in Spotify. It will show your most recently played track, playlist or album.

Spotify Radios and the Daily Mixes will only redirect you to the track that was last played within the Daily Mix/Radio. The Spotify WebAPI should report the URL of the Daily Mix/Radio but doesn't.

Get it here!

More Workflows are coming...

If you have any ideas for other ways Siri could be used to control Spotify let me know and I'll do my best to bake that idea into a Workflow. Keep in mind though that it's not possible to let Siri hand over a variable to Workflow e.g. asking Siri to "Play Bella Ciao" and have Siri hand over "Bella Ciao" to the workflow to search for that track does not work.

When you want to say goodbye to the convenience of controlling Spotify with Siri

When the time comes and you don't feel like you want to use the Workflows anymore or don't feel comfortable with the safety of your Spotify data you can revoke the access for the Workflows right from your Spotify account page under the Apps tab where it will be listed as "Spotify Workflow". After that you won't be able to use the Workflows anymore and would have to generate a new refresh token.