Jump to content

Copying the file name of the selected result using command


chezluc
 Share

Recommended Posts

Hi Alfredapp!
I recently discovered the functionality that allows you to open a selected Applescript result using command+O directly from Alfred's list of results, while maintaining enter as the key that will run the script. In my workflow, often I need the name of the exact file, to include in an email or slack message. These file names are rather long so going to the Finder and copying the name of the selected file using command+C is the best option.

 

It would be nice to apply the same logic used for opening an Applescripts to copy the filename of the selected Alfred Result.

Current Workflow:
command+space -> typed query -> command+enter to reveal in finder -> command+c
Result = filename.ext on the pasteboard.

 

Proposed Workflow
command+space -> typed query -> command+c
Result = filename.ext on the pasteboard.

 

As I'm writing this I realize it would be nice to have this for copy path as well.

 

Current Workflow:
command+space -> typed query -> F11 to activate File Actions -> Up Key to go to the last on the list -> Enter
Result = /pathto/filename.ext on the pasteboard.

 

Proposed Workflow
command+space -> typed query -> Command+P
Result = /pathto/filename.ext on the pasteboard.

 

This might seem like a small change but for me these are very common actions as an Alfred Superuser.

Thank you!
Luke

Screen Shot 2018-03-30 at 2.47.43 AM.png

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...