Jump to content

Add a "Rename" action to the file action list


bengr

Recommended Posts

Hey,

I suggested this feature back in v1 already, but thought of maybe suggesting it again, hoping it would be added to Alfred 2 sometime.

 

From the file action menu there's no option to rename a file. I can't think it would be that hard to incorporate into Alfred in a nice fashion.

 

This can be done in a workflow I believe, but it would be made in a really "ugly" fashion (like the color labeling workflow here, which re-invokes Alfred after the action is selected), and it's such a useful thing that I think it should be a part of Alfred itself.

 

Please add this to Alfred.

 

Thanks,

Ben

Link to comment
Share on other sites

Hey,

I suggested this feature back in v1 already, but thought of maybe suggesting it again, hoping it would be added to Alfred 2 sometime.

 

From the file action menu there's no option to rename a file. I can't think it would be that hard to incorporate into Alfred in a nice fashion.

 

This can be done in a workflow I believe, but it would be made in a really "ugly" fashion (like the color labeling workflow here, which re-invokes Alfred after the action is selected), and it's such a useful thing that I think it should be a part of Alfred itself.

 

Please add this to Alfred.

 

Thanks,

Ben

 

I was just thinking about this. Would be lovely, I wish alfred was a replacement for Finder sometimes and it is to a extent.

Link to comment
Share on other sites

I didn't have one made, I said it was possible. I made a really quick cut at one. It should work. Seemed fine during my very quick testing...

 

Download

 

 

Well, it works for pdf's and pngs. No file icon except blank white, and it doesn't seem to work in .pages files. Not bad though thx!

Link to comment
Share on other sites

This could be accomplished with a workflow for now.

This could be made in a workflow, like most other stuff in Alfred to be honest (but that's just because the workflows are such a powerful thing in Alfred), but it's such a core thing that it should be integrated into Alfred itself. Hell, it shouldn't even be a Powerpack feature.

 

You can say the same thing on the calculator, custom searches, Terminal execution, file search etc. The list just goes on and on (and if I'm not mistaken, Andrew said once on Twitter that every feature in Alfred 2 is essentially made by a workflow), but that doesn't mean that you shouldn't integrate stuff into Alfred itself. Core thing should come out of the box, and more so when executing them in Alfred itself (integrated rather in a user-made workflow) would be a lot nicer and less "hack-ish". This is a great example - to rename a file using a workflow, you have to re-invoke Alfred after the file action (unless you do it in an AppleScript, which can pop up a message box with a textbox in it etc), but that feels really hack-y to me.

Link to comment
Share on other sites

Well, it works for pdf's and pngs. No file icon except blank white, and it doesn't seem to work in .pages files. Not bad though thx!

 

I don't see why it wouldn't work with .pages... under the hood its just doing a 'cp' and then removing the original. I guess technically it COULD have done a 'mv' instead but, it should work for any file. It could be modified to handle folders as well. As I said, this wasn't something I had made and waiting. It was something quickly thrown together.

Link to comment
Share on other sites

I don't see why it wouldn't work with .pages... under the hood its just doing a 'cp' and then removing the original. I guess technically it COULD have done a 'mv' instead but, it should work for any file. It could be modified to handle folders as well. As I said, this wasn't something I had made and waiting. It was something quickly thrown together.

 

Yes, i know ole chap i appreciate it, just thought i would let you know.

Link to comment
Share on other sites

I don't see why it wouldn't work with .pages... under the hood its just doing a 'cp' and then removing the original. I guess technically it COULD have done a 'mv' instead but, it should work for any file. It could be modified to handle folders as well. As I said, this wasn't something I had made and waiting. It was something quickly thrown together.

Yeah, it's a folder thing. .pages documents are actually bundles.

Link to comment
Share on other sites

OK.. I enhanced the quick version of David a bit:

 

 

1. It uses "mv" instead of copy / remove. This way it will work on folders (and bundles) and keeps its attributes (could add a touch to bump the date though).

2. I made it so that the original name is shown when you rename a file!

 

https://github.com/oderwat/alfredworkflows/raw/master/Rename%20File.alfredworkflow

 

P.S.: I make it update able with Alleyoop and may enhance it further.. if you want it back David just tell me!

Link to comment
Share on other sites

OK.. I enhanced the quick version of David a bit:

 

 

1. It uses "mv" instead of copy / remove. This way it will work on folders (and bundles) and keeps its attributes (could add a touch to bump the date though).

2. I made it so that the original name is shown when you rename a file!

 

https://github.com/oderwat/alfredworkflows/raw/master/Rename%20File.alfredworkflow

 

P.S.: I make it update able with Alleyoop and may enhance it further.. if you want it back David just tell me!

 

Doesn't work with folders.

Link to comment
Share on other sites

  • 4 years later...
  • 4 years later...

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
×
×
  • Create New...