DKalmbach Posted August 9, 2018 Posted August 9, 2018 (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 Edited August 9, 2018 by DKalmbach
vitor Posted August 9, 2018 Posted August 9, 2018 (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 September 23, 2018 by vitor DKalmbach 1
DKalmbach Posted August 9, 2018 Author Posted August 9, 2018 (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 August 9, 2018 by DKalmbach
vitor Posted August 10, 2018 Posted August 10, 2018 No, but you can set it as a Workflow Environment Variable which gives you a central place to change. 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?
DKalmbach Posted August 10, 2018 Author Posted August 10, 2018 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!
vitor Posted August 10, 2018 Posted August 10, 2018 I’ve updated the previous link with the new version. DKalmbach 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now