Skip to content

This workflow lets you rename multiple files at once using alfred

Notifications You must be signed in to change notification settings

TobiasMende/alfred-bulk-renaming-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This workflow lets you rename multiple files at once using the really really great Alfred App on OS X. For this purpose, it provides a file action. After choosing files you are guided through three phases:

Step by Step

  1. You are ask to enter or choose a regular expression which should match parts of the input file. File endings are not renamed so your regex must not match a file name with its extension but only the name itself.
    • You can use a normal python regex.
  2. You are ask to enter or choose a rename pattern (also a regular expression). Here you have the following options:
    • $0 matches the full input, i.e. if your file is named 'foo.jpg' $0 gives you 'foo'.
    • $1 to $n contain the regex matching groups, you have defined previously.
    • {n} contains a serial number which starts at 1.
    • {d} contains the current date in the format 'YYYY-MM-DD'.
    • You can add the following options in front of the normal pattern followed by a /:
      • c to capitalize every word
      • r(<from>,<to>) to replace every occurrence of <from> with <to>
      • Multiple options can be divided by / again.
  3. After pressing enter again, Alfred shows you a list which gives you a preview of how the renaming will look.
  4. Pressing enter again will rename all files according to your expressions.

Examples

The workflow presents a number of options for both matching and replacing patterns.

About

This workflow lets you rename multiple files at once using alfred

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages