Jump to content
hmelman

Most Recent Download

Recommended Posts

I want a workflow that (via hotkey) brings up the most recent file in ~/Downloads/ with the file action viewer in Alfred 4.  The closest I can come is the following.  A Hotkey trigger that passes through to the workflow the text "*".  That connects to a File Filter input to get a list of files with scope ~/Downloads sorted by Last Modified Date, the smallest Result Limit choice is 10.   Then I connect that to the new Action in Alfred action.  When I run that I get an Alfred window with the input of * showing the 10 most recent files and I just hit Return to get to the file actions. 

 

That's functional but a little clunky.  I'd like to not see the * (or even need to pass it) and just send one file to the Action in Alfred action.  I think ideally the File Filter would allow a limit of 1.  Or there would be some utility object I could put between the File Filter and the Action in Alfred to filter the 10 down to the first object, but I couldn't find one.

 

I know about the old workflow Recent Downloads but I'm curious if this can now be done directly in Alfred's Workflow editor without the need for a script. 

Edited by hmelman

Share this post


Link to post
1 hour ago, hmelman said:

I'm curious if this can now be done directly in Alfred's Workflow editor without the need for a script.

 

If it could, Vítor probably wouldn't still be updating his "old" workflow.

 

File Filters won't show any results without a query. So you can’t make the * go away if you want to use a File Filter.

 

Your choices are "clunky" or script, I'm afraid…

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...