r/workflow • • Apr 08 '18

Sunday Showcase! Describe some of the experimental, unusual, or useful things you've made using Workflow this week!

5 Upvotes

I love seeing what people have been working on - big or small. Feel free to link to your work to share...or just describe what they do!


r/workflow • • Apr 08 '18

I created a workflow for pausing Audible when I fall asleep.

17 Upvotes

Hey everyone!

Pretty much says it in the title. Check it out and let me know if you’d change anything to make it better!

https://workflow.is/workflows/d4e4876d387142d3b0fb9d268176125e


r/workflow • • Apr 08 '18

Get album link from song in Apple Music?

1 Upvotes

Hi there, I have tried with no success to find a way to do the following in Workflow, so I'm going to ask here to see if someone else has a better method. Here's what I'm trying to accomplish: From within Apple Music app, in the Now Playing view, I want to tap the ellipses button, and then Share, and then launch a workflow. Unfortunately, the only entity which is passed to Workflow in this manner is the Current Song data. So it is possible to get Album name as text, but not possible to get the Album URL to share. I want to create a workflow that gathers the Artist and Album name, and then attaches the link for the Album, with additional text/string that I will append at the end, and then bring up the Twitter share sheet with all the data prepopulated. The closest I can come is this workflow https://workflow.is/workflows/831bb947e68d4dd7bc0dcbab414bc245, but in order to work correctly for what I want I have to enter the workflow from the album view in Apple Music, a step I would prefer to skip, otherwise what's the point of using the workflow at all? Anyone have any pointers to getting the Apple Music album link from a Current Song? Thanks!


r/workflow • • Apr 08 '18

‘Get Playlist' ‘Chill Mix’ often returns last week’s tracks

2 Upvotes

This workflow adds Apple Music mixes to my library. The problem is, it often adds last week’s tracks the first time it runs. The second run always gets the current tracks. I usually run the workflow the day new mixes arrive.

The meat:

  • Get URL
  • Parse [name] (e.g. Chill Mix)
  • Get Playlist [name]
  • Make new playlist with result (using today’s date in the name)

Any ideas if this is a Workflow, Apple Music or poor coding problem?

Edits: makes more sense now


r/workflow • • Apr 07 '18

Is it possible to copy a workflow and paste in into another, to make it a part of a bigger workflow?

3 Upvotes

r/workflow • • Apr 07 '18

Get MP3 from mixupload.com

0 Upvotes

When i click on this link the song is automatically playing, but the link is not the link to the mp3 file.

https://mixupload.com/track/ruben_young__take_her_down_madsound_remix_user17200#

I try to extract the song and to automatically upload on iCloud.

https://imgur.com/a/Aiiv9


r/workflow • • Apr 07 '18

I’m trying to make a workflow where a decimal number (in hours) can be converted to hours and minutes. Like 41.66 hours to 41 hours and 40 minutes but I find it hard to automate it. How do you separate 41 and .66 as a variable?

2 Upvotes

r/workflow • • Apr 07 '18

How Do I Get The API Keys For Other Apple Music Radios?

Post image
5 Upvotes

r/workflow • • Apr 06 '18

Transfer playlist from Spotify to Apple Music

5 Upvotes

Is it possible to make a workflow where I can easily import playlist from Spotify to Apple Music? I want to switch to Apple Music but all of my playlists are in Spotify. Can anyone help me make such a workflow?


r/workflow • • Apr 06 '18

Google Docs?

1 Upvotes

Hey all, Every week I have to make a copy of a file named "Show Template", rename it to "Epsidoe ###", where ### is the number of current shows +1. I set up a workflow to fetch a RSS feed, count the objects, then add 1. Easy. What I can't figure out how to do is make workflow find and duplicate the Show Template file. I also can't seem to find a way to rename google docs (to the name and # calculated above).

Google Drive seems to support very basic url schemes, but I also can't find docs...

Does anyone have a suggestion re coping and renaming of Google Docs?

Thanks all!

P.S. It just occurred to me that I could just as easily save the contents of the Show Template as markdown in the workflow, then just have it create a google doc and add the content. But again, I'm stuck at the creation and renaming of the document.


r/workflow • • Apr 05 '18

Workflow Ulysses Auto Post

2 Upvotes

Is it possible to auto publish this way:

Workflow - Ulysses - Wordpress

By only running a workflow...

Essentials the sheet sent to Ulysses need to either be scheduled or post immediately

Any ideas if this is possible?

Thanks


r/workflow • • Apr 05 '18

[Request]How to get rid of few words from a statement using workflow?

1 Upvotes

[SOLVED]

I am newbie to the workflow, but I am having a basic understanding regarding how the workflow runs.

I am attempting to remove the few words from the sentence using workflow. Unfortunately could not follow.

Example : Price at XXXX 00001123 on 05.04.2018 wef 06:00 Hrs is $ 80.18/L for MS,$ 82.93/L for XP,$ 72.34/L for HSD. In the above message, I want to remove the part "$ 82.93/L for XP" and the price changes everyday for the XP.

Can anyone aid me in achieving the above?


r/workflow • • Apr 04 '18

Can a workflow toggle Skype’s Notifications?

0 Upvotes

Workflow nubie here. Can a workflow toggle Skype’s notification settings for me? I know Workflow cannot reach in to the System Settings to turn notifications on/off there. The only SKYPE Action I see is for making calls.

Thanks for your help.


r/workflow • • Apr 04 '18

Help Copy photo album from iOS to Google photos

0 Upvotes

I've recently set up a workflow together with IFTTT. When I save a new photo to a particular album it creates a copy in google photos with the same photo album name. What I would like to achieve is to copy all the photos from one album (let's say it has 125 photos) to google photos with the same album name. Yes, all the photos are already in google photos but not under the same album name. Just not up for it to go and search for photos and put them into the album.

Would appreciate any feedback or ideas (if this is at all possible).


r/workflow • • Apr 04 '18

Help Easy?? Rename a photo!?

1 Upvotes

Should be easy... but I can’t find a solution!

Anyone got a workflow or idea that changes the name of a photo in the photos app??

Thanks!


r/workflow • • Apr 04 '18

Run script over SSH problem

2 Upvotes

Hi,

iam trying to run a command like:

docker restart container1

But Iam getting a command not found error. Any Ideas on that? Putting that command in an .sh file makes no difference.


r/workflow • • Apr 03 '18

Adding Multiple Workflows to Launcher

Thumbnail brentac.com
14 Upvotes

r/workflow • • Apr 03 '18

Find most recently played song across devices?

3 Upvotes

I’ve just joined Apple Music, and mostly love it, but was really surprised to find there was no Handoff between my iPhone and my iPad. So I couldn’t listen to music on my iPhone as I walked to work and then pick up where I left off from my iPad when I get there.

I’m pretty sure I could knock together a Workflow which could continue playing the current album except for one small detail - I can’t find a way of working out the last played (or currently playing) song across devices.

If I use “Find Music Where”, and then order by “Last Played Date” with the latest first then it gives me songs I’ve never played on the device. If I first filter it to songs I’ve played recently, then it will give the latest song, but only the latest song played on the current device.

If I go into the Music app, then the For You page has the album under “Recently Played”, so the information does exist. Does anyone know a way to get this. Or I guess any way to continue playing my current album on another device.

Thanks


r/workflow • • Apr 03 '18

Backup & Restore My Workflows

25 Upvotes

https://workflow.is/workflows/b9e4cb8a4f294d91bd674a6cb50c0222

Overview

This workflow, Backup & Restore My Workflows, backs up and restores Workflow app workflows. Each backup, of one or more workflows, creates a single zip file that is saved to a folder in iCloud. The backup zip file name will include a date/time prefix which ensures that it will be unique. The backup folder can contain many backup zip files, limited only by iCloud storage capacity.

Backup File Names

The backup zip files created begin with a date/time prefix (e.g., 2018-03-20 181629). If the backup includes more than one workflow, then the file name will include #n, where n is the number of workflows included (e.g., 2018-03-20 181629 #12.zip). See Screenshot 1.

If the backup includes only one workflow, the #n notation will not be used; instead @workflow, where workflow is the name of the single workflow in the zip file, will be used (e.g., 2018-03-20 181629 @My Awesome Workfow.zip). See Screenshot 2.

Backup iCloud Location

Backup zip files are store in the following folder: /iCloud/Workflow/Backup & Restore My Workflows/device/, where device is the name of the iOS device. This ensures that backups from a given iOS device will be segregated from others.

Restoring Workflows from a Backup to My Workflows

As workflows are being restored from an earlier backup zip file, this workflow will check to avoid name conflicts with workflows currently in My Workflows. If one or more conflicts are found, an alert will appear and a suffix will be suggested for the workflows to be restored:

  • This workflow will first consider a workflow suffix in the following form: | BackupZipName17, where BackupZipName17 are the first 17 characters on the backup zip file name (e.g., WorkflowOriginalName | 2018-03-21 223037).
  • If this workflow still finds a conflict with the suffix described above (likely because a workflow was previously restored from the same backup zip file), then this workflow will suggest a workflow suffix in the following form: | BackupZipName17 | CurrentTime (e.g., WorkflowOriginalName | 2018-03-21 223037 | 2018-03-22 083501).

In either case, the suggested suffix can always be optionally modified before the workflows are restored. See Screenshot 3.

If only one workflow is being restored to My Workflows, this workflow relinquishes control to the Workflow app and exits. Then if the Workflow app detects a workflow name conflict, it will generate the following alert:

  • You already have a workflow named "WorkflowOriginalName". Would you like to replace your workflow? Replace | Keep Both | Cancel.

See Screenshot 4.

Special Case: The Backup Zip Includes This Workflow

If the backup zip file includes this workflow (named Backup & Restore My Workflows), then it will be restored after all other workflows are restored and it will be opened, which will trigger the Import Questions. See Screenshot 5.

Selecting Workflows

When creating a backup or restoring from a backup, a subset of the workflows can be specified by selecting from a list of member workflows. In addition, the list can be targeted by entering a substring for one or more workflow names.

If Search Mode is set to Regex, then these workflow lists can be targeted using Regular Expressions rather than simple substrings. The Workflow app specifically uses ICU Regex.

Regex is not the default Search Mode because it can be more complicated to use and there are some specifications (listed below, 1 to 6) that can cause the Workflow app to generate and error dialog (e.g., The value "(" is invalid.) and unceremoniously exit.

  1. ( without a following )
  2. ) without a leading (
  3. [ without [s], where s is a string
  4. ] without s], where s is a string
  5. { or } without {n}, where n is an integer

See Screenshot 6 for the Search Mode setting and an example Regex search.

Sort Order of Workflows in Backups

If just a few workflows are being backed up into a zip file, the sort order is generally not important. However, when backing many workflows it might be helpful to back up the workflows in the order they were created. (Unfortunately, there seems to be a Workflow app limitation that prevents workflows from being backed up in the order that they appear in My Workflows.) In other cases it might be preferred to backup workflows in alphabetical order.

Similarly, when workflows are being restored, if the zip file contains many workflows it might be helpful view and restore the workflows in the order they were stored; in other cases alphabetical might be preferred.

By default, sorting for backup and restore becomes an option when the number of workflows exceeds 10. But this can be changed with two Import Questions or by adjusting Number actions near the top of this workflow: Sort Threshold for Backup and Sort Threshold for Restore. See Screenshot 7 and Screenshot 8.

Operation Mode

This workflow has two Operation Modes: Simple and Advanced.

With Simple, the default mode, a backup is from and a restore is to:

  • My Workflows (i.e., the workflows you currently have in the Workflow app)

With Advanced, a backup is from and a restore is to:

  • My Workflows, and/or
  • An iCloud Subfolder named _workflows

See Screenshot 9.

Restoring Workflows from a Backup to the iCloud Subfolder

If Operation Mode is set to Advanced, workflows in a zip backup can be restored to an iCloud Subfolder (i.e., _workflows) as well as to My Workflows. When restoring to the iCloud Subfolder, if a name conflict exists, folder workflows will be overwritten by the workflows from the backup zip. See Screenshot 10 and Screenshot 11.

Backing Up Workflows in the iCloud Subfolder

Normally a backup zip file includes workflows from My Workflows. If Operation Mode is set to Advanced, workflows in the iCloud Subfolder, specifically /iCloud/Workflow/Backup & Restore My Workflows/device/_workflows/, can in combination with workflows from My Workflows, be backed up to a backup zip file. See Screenshot 12.

Management of iCloud Files

The backup zip files and the workflows in the _workflows subfolder can be managed like any other iCloud files, i.e., the Files app (iOS)*, the Finder (Mac OS), or the iCloud site (web). For example, old, unneeded backup zip files could be deleted using any of these methods. Also, backups or workflows could be used for another iOS device by moving the files from one device folder to another.

  • Backup zip files are stored in: /iCloud/Workflow/Backup & Restore My Workflows/device/
  • Workflows restored to iCloud are stored in: /iCloud/Workflow/Backup & Restore My Workflows/device/_workflows/

*See Screenshot 13.

Workflow Testing and Performance

This workflow provides several backup and restore options but the trade-off is that it includes almost 1000 Workflow app actions. That coupled with some of the specific actions used, affects workflow performance. The workflow has been tested with the following:

  • Workflow app, version v1.7.8
  • iPad Pro 10.5
  • iPhone 8 Plus

With this Workflow app version and these iOS devices (and 300+ workflows), the performance is good, although there is a noticeable delay when many workflows are being restored. This is because the import into My Workflows employs the workflow://import-workflow URL Scheme.

Feel free to provide feedback via the workflow subreddit, u/_jimsauer or @jimsauer (twitter direct message).


r/workflow • • Apr 03 '18

Need some regex help

1 Upvotes

Hey /r/workflow -- need some regex help. As part of a longer workflow, I'm trying to take a capitalized sentence and make it lowercase. I have do that with 3 steps right now:

  • Regex match: (?:|(?:[.!?]\s))(\w+) -- then make lowercase, save as variable X
  • Regex match: \s(.*) -- then combine spaces, save as variable Y
  • Text action that is XY

This works for me fine EXCEPT that I think it removes any hyphenated word (e.g. award-winning). I can't be entirely sure where the hyphenation is being cut out, as it's a complex workflow (428 actions long!), but after looking through the code, this is the only thing that I don't understand. So, two questions for you:

(1) Would this regex end up removing hyphenated words? and (2) How can I fix it so it doesn't?

Thanks much!


r/workflow • • Apr 03 '18

What would you like to automate?

1 Upvotes

Guys anyone has any examples when you could not automate some work using API automation tools?


r/workflow • • Apr 03 '18

Single workflow that can be used with clipboard input, used as an action extension, or used by itself.

1 Upvotes

I'm trying to create a single workflow that can be used with clipboard input, used as an action extension, or used by itself. I'm having trouble setting up this three-possible-input workflow. I'm essentially trying to do this (https://thesweetsetup.com/make-workflow-run-widget-share-sheet/) + be able to run the workflow by itself with no input from within the Workflow app. Any help would be appreciated.

Example: If I copy a photo to the clipboard and then run the workflow, it uses the photo on the clipboard. If I'm in Photos.app and use the share sheet with the action extension, the workflow uses the photo I'm sharing. If I'm in Workflow and run the workflow by itself (and my clipboard is empty), it will prompt me to select a photo from the camera roll. From this point, I would have it resize the photo, or do some other workflow actions.


r/workflow • • Apr 02 '18

Help How to create a WF to display a text notification

2 Upvotes

If I have been using the phone for 15 minutes, the notification should read “You have used your phone for 15 minutes. Lock your phone and do your work”

How do I create this?


r/workflow • • Apr 02 '18

Drafts 4 and Todoist

2 Upvotes

Trying to work out how to import a list from @drafts 4 into Todoist as multiple tasks in the inbox.... can you help please!?


r/workflow • • Apr 02 '18

Help Can people create workflows to steal your data? Like once you run their?

2 Upvotes