Jump to content
DKalmbach

[SOLVED] Help converting a Keyboard Maestro Macro into a workflow

Recommended Posts

Posted (edited)

HI Guys,

Brand new to Alfred, so please excuse my ignorance. I'm looking at converting a small(ish) KM macro over to Alfred if at all possible.

 

The workflow is triggered by a Hotkey, (pauses to allow time for recent files to be saved), and monitors a source folder, finds the latest added file and copies it to a destination folder. Attached is the screenshot of the script that is currently used in KM.

 

Any help would be much appreciated. I'm sure it's relatively easy, but I'm still learning how to string everything together.

 

Thanks!!

 

Dave

Keyboard_Maestro_Editor.jpg

Edited by DKalmbach

Share this post


Link to post
Posted (edited)

Welcome @DKalmbach,

 

On 8/9/2018 at 2:34 PM, DKalmbach said:

Brand new to Alfred, so please excuse my ignorance.

 

Not knowing but having a genuine interest to learn is nothing to apologise for.

 

Does this work like you want?

Edited by vitor

Share this post


Link to post
Posted (edited)

Amazing! Thanks so much!

 

One reason I wanted to switch over to Alfred was that it was a friendlier UI for our team to use.

 

1. Is there any way to allow me to change the source and destination directories (these change on a regular basis) by clicking an object in the workflow and navigating to the folder (instead of opening and pasting the folder paths inside the script each time) - this one one thing I wasn't super keen on inside KM.

 

2. Also is there any way to limit this workflow to only monitor and copy over .jpg files? 

 

I really appreciate your help!

Edited by DKalmbach

Share this post


Link to post

  1. No, but you can set it as a Workflow Environment Variable which gives you a central place to change.
  2. Currently it copies the most recently modified file. Do you want to copy the most recently modified file if it’s a jpg, or do you want to copy the most recently modified jpg?

Share this post


Link to post

Thanks for the reply, Vito.

 

1. This workflow is used during an event, so we wouldn't need it to be continually changing - just when we set up the folders before the event. So if there was a clean method to change the folders, and not have it pop up as an option when the workflow is triggered that would be ideal. If not, we can stay with the current pasting in the path.

2. I would like to copy the most recently modified jpg. (Sometime other files including preference / settings file get added to the folder - which I want to ignore)

 

Thanks!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×