Jump to content

Rename 4.0 beta 2 for Alfred 3: Batch Rename files or folders (supports Regular Expression and EXIF date)


Recommended Posts

  • Replies 70
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Overview Rename a file or a folder selected in Finder or in Alfred Batch rename files or folders using Regular Expression Add additional steps such as find and replace, remove spac

Rename 4.0 beta 1 for Alfred 3   Download

This looks amazing and almost to good to be true, but the download link doesn't work for me. :-(

It would be cool if you could add a variable for pasting out of clipboard.

 

Also, ist there a way to manage the presets / add new ones?

 

Thank you for your suggestion. I’ll probably add it after some tests.

 

Regarding your second question:

 

Recent Expressions

The workflow saves the last regular expressions you have used.

To add a Recent expression to Presets just type plus symbol followed by the preset name: +For My Videos

While in Presets just type minus symbol “-“ to remove from Presets.

Link to post
  • 6 months later...

  • RegEx Renamer 2.0 Beta 1

Make some tests before using it for good. This version is still a beta.

 

See the initial post for more information and how to use the new version.

 

What's new?

  • Use the workflow to rename a single file without using a regular expression

Use Regular Expression then Find and Replace in the same time

Last used expression item added

Hot key to use the last expression with no interaction (use with caution)

Improved regular expression unicode support

Cleaner interface and new icons

 

Download now

 

 

regex_main.png

Edited by Carlos-Sz
Link to post

Great workflow! Very useful! I've been missing total comander multi-rename tool so much, and here this workflow!

 

Is it possible to make it move files to folders by regexp. 

 

For example if I put in new filename field symbol "/" - it means that file supposed to be moved to folder before symbol"/" with filename after symbol. 

 

for example if I would put file into folder with date - I would write command like this:

regex (.*)\.(.*)@$y$m$d/$1.$2

 

Or may be my problem has solution alredy? 

I just want to group files to folders by date. 

Edited by 40-02
Link to post

Right now it is not possible but it's an interesting feature.

I'll consider it for sure.

Thank you for your feedback.

Great workflow! Very useful! I've been missing total comander multi-rename tool so much, and here this workflow!

Is it possible to make it move files to folders by regexp.

For example if I put in new filename field symbol "/" - it means that file supposed to be moved to folder before symbol"/" with filename after symbol.

for example if I would put file into folder with date - I would write command like this:

regex (.*)\.(.*)@$y$m$d/$1.$2

Or may be my problem has solution alredy?

I just want to group files to folders by date.

Link to post

RegEx Renamer 2.0 Beta 2

 

What's new?

  • Creation date, modification date and height and width file properties added
  • Create a folder utilizing regular expression and move files after renaming e.g. (.*)\.(.*)@$y$m$d/$1.$2
  • Check if a file already exists before applying

 

Beta 1:

  • Improved regular expression unicode support
  • Cleaner interface and new icons
  • Use the workflow to rename a single file without using a regular expression
  • Use Regular Expression then Find and Replace in the same time
  • Last used expression item added
  • Hot key to use the last expression with no interaction (use with caution)
  •  

See initial post for details.

 

 

Great workflow! Very useful! I've been missing total comander multi-rename tool so much, and here this workflow!

 

Is it possible to make it move files to folders by regexp. 

 

For example if I put in new filename field symbol "/" - it means that file supposed to be moved to folder before symbol"/" with filename after symbol. 

 

for example if I would put file into folder with date - I would write command like this:

regex (.*)\.(.*)@$y$m$d/$1.$2

 

Or may be my problem has solution alredy? 

I just want to group files to folders by date. 

 

Now you can use “/“ to create a new folder and move the files there like you have suggested: (.*)\.(.*)@$y$m$d/$1.$2

Link to post
  • 1 month later...

Version 2.0 is out!


What's new?


  • Use the workflow to rename a single file without using a regular expression
  • Use Regular Expression then Find and Replace in the same time
  • Last used expression item added
  • Hot key to use the last expression with no interaction (use with caution)
  • Creation date, modification date and height and width file properties added
  • Create a folder utilizing regular expression and move files after renaming
  • Check if a file already exists before applying
  • Improved regular expression unicode support
  • Cleaner interface and new icons

See initial post for more details.


Link to post
  • 2 months later...
@Carlos 

 

I kinda feel stupid, but I can't make the workflow work.

After selecting one .txt file in Finder, launching Finder, typing regex name text.txt, hitting enter, nothing happens ...

I didn't tried the to rename my files with a regular expression.

 

(I am a Mavericks user)

Link to post

 

@Carlos 
 
I kinda feel stupid, but I can't make the workflow work.
After selecting one .txt file in Finder, launching Finder, typing regex name text.txt, hitting enter, nothing happens ...
I didn't tried the to rename my files with a regular expression.
 
(I am a Mavericks user)

 

 

Mavericks here too. :)

 

You have to highlight Apply Now then hit enter key.

Link to post
  • 2 weeks later...

Rename 3.0 is out!

What's new?

  • Changed workflow name to only Rename
  • EXIF Original Date (to use as a filename constant)
  • Up to 10 times faster to process and even faster to rename
  • Included the keyword ren as an alternative to the regex
  • Recent Expressions shortcut: type a single @
  • Presets shortcut: type a single #
  • New Picture Preset
  • Improved Last Used feature
  • UI refinements, including new icons
  • New Help
  • Filename case procedure improved
  • Fixed second leading zero constant

rename3.png

Edited by Carlos-Sz
Link to post
  • 4 weeks later...

Hi Carlos,

 

Rename 3.0 works like charm under Mavericks. Thank you for this little nice utility! It makes my life much easier.

 

But to my surprise it stops working under OS X 10.10 Yosemite...  Here the error message:

0 , , file, , renamed (,1 , failed)

Is a quick fix possible!?

 

 

Thanx in advance.

 

Efty

Edited by Efty Edge
Link to post

Hi Carlos,

 

Rename 3.0 works like charm under Mavericks. Thank you for this little nice utility! It makes my life much easier.

 

But to my surprise it stops working under OS X 10.10 Yosemite...  Here the error message:

o , , file, , renamed (,1 , failed)

Is a quick fix possible!?

 

 

Thanx in advance.

 

Efty

 

It seems Yosemite Finder rename command may be different or not available yet.

 

I’m still running Mavericks but you can make a test so we can get more informations about the error:

 

1. Download this zip

2. Uncompress the two files in the Rename 3.0 workflow folder

3. Open regex_test.scpt in AppleScript Editor

4. Select 2 files in Finder (test files, they will be renamed)

5. Run the script

 

Thank you for your feedback.

Link to post

Hello Carlos

 

thanx for your quick reply.

 

I've done as told ...

 

It seems Yosemite Finder rename command may be different or not available yet.

 

I’m still running Mavericks but you can make a test so we can get more informations about the error:

 

1. Download this zip

2. Uncompress the two files in the Rename 3.0 workflow folder

3. Open regex_test.scpt in AppleScript Editor

4. Select 2 files in Finder (test files, they will be renamed)

5. Run the script

 

Thank you for your feedback.

 

... and here is the german error message.

error "„Finder“ hat einen Fehler erhalten: Der Vorgang kann im Moment nicht abgeschlossen werden, da eine andere Aufgabe, wie Bewegen oder Kopieren eines Objekts oder Entleeren des Papierkorbs, durchgeführt wird." number -8065

In english it means something link this.

Finder has received an error. The operation can not be completed, because there a different task, such as moving or copying an object or emptying the Trash is performed.

Hope this helps...!?

 

Best regards

 

Efty

Edited by Efty Edge
Link to post

Hello Carlos

 

thanx for your quick reply.

 

I've done as told ...

 

 

... and here is the german error message.

error "„Finder“ hat einen Fehler erhalten: Der Vorgang kann im Moment nicht abgeschlossen werden, da eine andere Aufgabe, wie Bewegen oder Kopieren eines Objekts oder Entleeren des Papierkorbs, durchgeführt wird." number -8065

In english it means something link this.

Finder has received an error. The operation can not be completed, because there a different task, such as moving or copying an object or emptying the Trash is performed.

Hope this helps...!?

 

Best regards

 

Efty

 

Finder, for some reason, is busy and not queueing additional commands.

 

Maybe Finder is not 100% operational or it is indeed stuck in some action.

 

Can you try to restart Finder or even your Mac?

 

When the first beta is ready I’ll try to install Yosemite.

Link to post
  • 1 month later...
  • 4 weeks later...

First of all, thank you for putting all this effort into this workflow. It seems to be just what I'm after. 

 

I'm on the Yosemite public beta 2, and I'm very eager to try this workflow, but nothing happens when I try to rename anything.

 

I do:

ren (.*)@00_#[1].pdf

The preview is totally fine, but when I try to apply the change, nothing happens.

 

I get the following debug:

[ERROR: alfred.workflow.action.script] Code 1: 0:59: execution error: System Events got an error: Can’t get property list file "/Users/knut/Library/Application Support/Alfred 2/Workflow Data/com.sztoltz.regexrenamer/settings.plist" of application "System Events". (-1728)

Would this be an easy fix?

 

-- KnutFH

Edited by knutfh
Link to post

First of all, thank you for putting all this effort into this workflow. It seems to be just what I'm after. 

 

I'm on the Yosemite public beta 2, and I'm very eager to try this workflow, but nothing happens when I try to rename anything.

 

I do:

ren (.*)@00_#[1].pdf

The preview is totally fine, but when I try to apply the change, nothing happens.

 

I get the following debug:

[ERROR: alfred.workflow.action.script] Code 1: 0:59: execution error: System Events got an error: Can’t get property list file "/Users/knut/Library/Application Support/Alfred 2/Workflow Data/com.sztoltz.regexrenamer/settings.plist" of application "System Events". (-1728)

Would this be an easy fix?

 

-- KnutFH

 

I don’t have Yosemite installed yet but all problems reported so far are basically related to the settings.plist file. It seems it is not being created under Yosemite.

 

Can you please try to add Alfred and AppleScript Editor to Accessibility / Privacy list in Preferences Security & Privacy?

 

Thank you.

 

PS: as soon as Yosemite is available I’ll update my working Mac and check all the issues.

Link to post

I don’t have Yosemite installed yet but all problems reported so far are basically related to the settings.plist file. It seems it is not being created under Yosemite.

 

Can you please try to add Alfred and AppleScript Editor to Accessibility / Privacy list in Preferences Security & Privacy?

 

Thank you.

 

PS: as soon as Yosemite is available I’ll update my working Mac and check all the issues.

 

Tried to add Alfred to the Privacy list (AppleScript editor was there already), but it didn't do any difference.

 

I'll look forward to Yosemite coming out this fall. 

 

Thanks!

Link to post

Can you please try this version? Download

 

I most certainly can. The issue still persists. 

[ERROR: alfred.workflow.action.script] Code 1: 0:65: execution error: System Events got an error: Can’t get property list file "/Users/knut/Library/Application Support/Alfred 2/Workflow Data/com.sztoltz.regexrenamer/settings.plist" of application "System Events". (-1728)
Link to post

 

I most certainly can. The issue still persists. 

[ERROR: alfred.workflow.action.script] Code 1: 0:65: execution error: System Events got an error: Can’t get property list file "/Users/knut/Library/Application Support/Alfred 2/Workflow Data/com.sztoltz.regexrenamer/settings.plist" of application "System Events". (-1728)

 

Yosemite, at least for now, is not creating a new plist file using System Events. The version below changes the approach:

 

Download 3.2

 

Thank you for your feedback!

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...