Jump to content

Search the Community

Showing results for tags 'rename'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
    • Advanced Tips & Tricks
  • Alfred Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting
  • Alfred 5 Early Access
    • Alfred 5 Early Access


  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL




Found 5 results

  1. 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
  2. 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 space, remove diacriticals, capitalize, add current date, file modified date, custom number sequence, EXIF original date etc. Quick look to preview all the new names Recent Expressions Presets, including default ones ready to be used Triggering keywords ren or regex - main workflow keyword keywords ren? or regex? - read about the workflow Hotkey - show Alfred with the keyword ren Hotkey - use the last expression with no interaction File Action - rename files or folders selected in Alfred file browser How to Use Rename Only You can use the workflow to rename a single file without using a regular expression, like in Finder: Select a single file in the Finder (or in Alfred file browser) Type the keyword ren Type the new filename e.g. new name.txt You can optionally use modifiers and filename additions (see below). Rename with Regular Expression Here is a command line with all features, including the optional ones, as explained below: regular expression@new filename $d-$m-$y ###[1]{find@@replace}{-modifiers} Step by step: (1) Type the regular expression to group elements of the previous filename: ^([ˆ ]+) (.*)\.(.*) The workflow will group using $1, $2, $3 and so on. Later you can use them to build a new filename. (2) When the regular expression is finished type then an at sign at the end: ^([ˆ ]+) (.*)\.(.*)@ (3) After the at sign type the new filename (here you can use the groups formed in the first step): ^([ˆ ]+) (.*)\.(.*)@$1.$3 (4) Optionally add current date or any other filename constants (read below about them): ^([ˆ ]+) (.*)\.(.*)@$1 $d-$m-$y.$3 (5) Optionally add a custom sequence of numbers e.g. with two leading zeros starting at one (read how to build a custom sequence below): ^([ˆ ]+) (.*)\.(.*)@$1 $d-$m-$y ##[1].$3 (6) Optionally find and replace characters in the original filename utilizing the syntax {find@@replace}: ^([ˆ ]+) (.*)\.(.*)@$1 $d-$m-$y ##[1].$3{_@@-} (7) Optionally utilize one of the modifiers (read about them below) to e.g. set all letters to lowercase: ^([ˆ ]+) (.*)\.(.*)@$1 $d-$m-$y ##[1].$3{_@@-}{-l} Note that it is important to keep the modifiers at the very end of the command and enclosed by {}, using or not find and replace. If all you need is a simple find and replace you can use the following simplified command: find@@replace{-modifiers} Whether using the regular expression or only the simple find and replace you can always preview the new filenames pressing SHIFT key: Modifiers -d to remove diacriticals -s to remove space -c to Capitalize Name -t to Title name -u to UPPERCASE -l to lowercase -_ to replace underscore to space -b to replace space to underscore Use one or more at the very end of the command enclosed by {}, for example: (.*)\.(.*)@$1.$2{-s-u} -@@_{-u} New Filename Constants You can add the following constants to the new filename: Current Date $d = day e.g. 02 $m = month e.g. 04 $mm = month e.g. April $y = year e.g. 2013 $h = hour e.g. 02 $n = minutes e.g. 54 $s = seconds e.g. 30 Date Created $cd = day e.g. 02 $cm = month e.g. 04 $cmm = month e.g. April $cy = year e.g. 2013 $ch = hour e.g. 02 $cn = minutes e.g. 54 $cs = seconds e.g. 30 Date Modified $mod = day e.g. 02 $mom = month e.g. 04 $momm = month e.g. April $moy = year e.g. 2013 $moh = hour e.g. 02 $mon = minutes e.g. 54 $mos = seconds e.g. 30 EXIF Original Date This is the date and time when the image was originally captured by the camera. $ed = day e.g. 02 $em = month e.g. 04 $emm = month e.g. April $ey = year e.g. 2013 $eh = hour e.g. 02 $en = minutes e.g. 54 $es = seconds e.g. 30 Image Dimensions $iw = width in pixels $ih = height in pixels Sequence You can add a number sequence to the new filename by utilizing # (each one represents a leading zero) followed by the start number enclosed in brackets e.g. ###[1] which means 3 leading zeros starting at 1. Create New Folder and Move Files You can also use the regular expression to create a new folder and move the file(s) there. Utilize a forward slash ("/") before the new name: (.*)@$m-$y/file.png A new folder will be created based on current month ($m) and year ($y) and the file will be renamed and moved to there. Recent Expressions and Presets To make things faster the workflow: Display the last used expression In Recent Expressions there are a list of the last 40 used expressions; note that you can alo use a shortcut to access them: just type a single at sign (@) In Presets there are some ready to use expressions a long with the user favorites ones; note that you can alo use a shortcut to access them: just type a single hash sign (#) The workflow saves the last used regular expression in the main workflow menu, a list of recent regular expressions and a list of Presets. To add a Recent expression to Presets just type a plus symbol followed by the preset name: +For My Videos While in Presets just type a minus symbol “-“ to remove from Presets. Download Version 4.0 beta 2 A new beta of the workflow that fixes some Mac OSX High Sierra bugs I have found. Please note: Use it with caution. Make some tests first. Backup your files before using the workflow. Release date 19 Feb 2018 OSX 10.13.3 Alfred 3 Download Now Download Version 4.0 beta 1 Release date 09 Jun 2016 OSX 10.11.5 Alfred 3 Download Now Rename for Alfred 2 Release date 25 Aug 2014 OSX 10.9.2 Alfred 2.4 or later is required Download Now What's new? 4.0 Alfred 3 support 3.2 Yosemite support 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 Workflow version history here.
  3. Well there was a feature Request for adding "Rename File" to the internal commands on files here: http://www.alfredforum.com/topic/1675-add-a-rename-action-to-the-file-action-list/ David Ferguson quickly replied with an custom workflow (with some smart Alfred magic making Alfred calling search on itself!) But his version was a bit raw and limited to files only. So I enhanced it as follows: 1. It uses "mv" instead of cp / remove. This way it will work on folders (and bundles). 2. I made it so that the original name is the default when you rename a file. 3. I added Alleyoop update to it as I may enhance / debug in the future. You can get my "Rename File" workflow version from here: https://github.com/oderwat/alfredworkflows/raw/master/Rename%20File.alfredworkflow V1.1: Visible rename confimation. Fixed renaming of files with spaces in name. CMD Return on rename now copies the resulting file path to the clipboard. Upgraded Alleyoop code too. All my current workflows are available here: https://github.com/oderwat/alfredworkflows
  4. This workflow simply allows to rename and existing file. The workflow prompts you with a box to enter the new file name. It can handle multiple arguments, so if you pass several files it will prompt you one by one for the new name for each file. Click here to download.
  5. Select a file in Finder and hit your hotkey. Adds the date to the filename before the suffix E.g. Item Name.xxx -> Item Name-03-25-2013.xxx Add Date To Filename.alfredworkflow Default date format changed to YYYYMMDD per advice from atadams. Now: Item Name.xxx -> Item Name-20130523.xxx v1.1: Add Date To Filename.alfredworkflow
  • Create New...