Batch folder rename

Is there a way to batch rename folders? I have a series of folders that I have inherited and they all have a digit at the end which I would like to remove. I really don't want to do this manually.
I've looked at Automator but can't see a solution there.

Use the following AppleScript when the enclosing folder is in the frontmost Finder window:
tell application "Finder"
repeat with this_folder in (get folders of window 1)
set name of this_folder to (items 1 thru -2 of (get name of this_folder)) as string
end repeat
end tell
(57766)

Similar Messages

  • Batch Folder renaming according to file name.

    Hi,
    I work in a busy photostudio and I am currently using automator to process thousands of Images, compression, size, name changes ect. However there is just one process I am stuck on. I need to put these Images into folders that relate to the file name. I have a process that will do this that I found here. This works well but i need it to only look at a certain part of the file name.
    For example if I had a collection of images like this,
    azz55412_blue_3.jpg
    azz55412_pink_2.jpg
    azz55412_blue_6.jpg
    azz78459_blue_1.jpg
    azz78459_blue_3.jpg
    azz65236_blue_7.jpg
    The current process would place each one in a folder named after each image. Ideally I would like it to only look at the first part of the name ie azz55412 and create a folder called that and place any other images it finds with the same code in that folder.
    Is this possible with automator or applescript?
    Any help or suggestions would be appreciated!
    Thanks,
    Mark

    Save the line below into a plain text file and give it the .jsx extension.
    app.activeDocument.activeLayer.name = decodeURI(app.activeDocument.name).match(/(.*)(\.[^\.]+)/)[1];
    Then create an action that runs that script. Then run File-Automate-Batch using that action.

  • Batch file renaming questions

    Beyond knowing that such a facility exists, I have no knowledge about Bridge scripting. Can it be used to modify the standard batch file rename process in Bridge?
    I would like to rename my Canon Raw images with the date (from EXIF Date Digitised) and a sequence number that resets to zero for each new date. This sequence number should accurately reflect the order in which the images were taken (via the time component of EXIF Date Digitised). I would also like to process all files in a subdirectory structure at the same time.
    The standard Bridge batch rename process does not offer a counter that resets for each new date, nor does it seem to allow processing files in more than one folder at a time.
    Can this be done? Do such scripts already exist? Alternatively, are there any commercial software utilities that can do this? I am already aware of a freeware solution called DIM but am a little worried about putting my faith in something with no guaranteed ongoing support - a concern that would be addressed by a script I can control myself or a properly supported commercial solution.

    Hello? Hello? Is there anyone there?
    Have I posted this question in the wrong forum or is everyone on vacation?

  • Batch file rename.  I have multiple files I want to rename, that have a date in their name in the mm/dd/yy format. The slashes seem to freak out the batch rename function.  Any workarounds that would help me avoid manually changing each name?

    OS X Yosemite 10.10.2, Macbook Air,
    Finder batch file rename function. I have multiple files I want to rename, that have a date in their name in the mm/dd/yy format. The slashes seem to freak out the batch rename function and it won't work.  I took out the slashes and worked fine.  Any workarounds that would help me avoid manually changing each name?  I should point out that I want to leave most of the name intact just change the first word in each name.  Also the files I'm working with are in PDF format.

    That's a comment in the file. It has no effect at all.

  • DW batch file rename

    Hello Everyone,
    I was wondering if there's a way to do a batch file rename, I
    have a bunch of files that has to be renamed from _e to -eng for
    example if the file is index_e.html I want to change it to
    index-eng.html and update the linked files as well, I'm currently
    doing it one by one using Dreamweaver but is inconvenient.
    Is there a way to do that in Dreamweaver and save the typing?
    Thanks

    Jagar_ wrote:
    > Is there a way to do that in Dreamweaver and save the
    typing?
    Unfortunately, no. You could use Find and Replace with a
    regular
    expression to change the links, but you still need to change
    the file
    names individually or in a third-party program.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Batch Resize, Rename & Watermark

    Hi, I was just wondering if you can batch resize, rename & watermark with Aperture? If not then can anyone recommend a piece of software that does have these features?

    "Exporting versions" in Aperture is the 'batch resize' as well as the 'batch rename' function all in one. When you choose to export a batch of images, a dialog box will appear with naming options as well as sizing options (as well as tons of other options).
    I have changed my presets to reflect the size i need on export, then i choose that preset from the export dialog box when it's time to export. I'm pretty sure you can export with a watermark, although I'm not sure.
    I have used TONS of different options to rename and resize, not to mention editing. Aperture does it all. Watch the tutorials, once you get a handle how Aperture works, you will not need anything else.

  • Complex folder renaming

    I must admit that I'm very new after being a long time PC user. I must say that I'm enjoying my Mac / Apple experience.
    After many years of taking digital photos and a box full of old cameras, going back to 2 MP, I've got a whopping 30 GB of photos. With each camera, folder naming was different. ie - 2005.01.01 or 01.01.2005 or 01-01-2005 or 20050101 etc.
    Does Automator have the ability to read the creation date of a folder and rename the folder that date? Can that be a batch process?
    I would like Automator to read the folders in 'photos' and change the name of the folder to the date the folder was created.
    Is that possible?
    Thanks!
    T

    Thanks for the info!
    I followed your instructions and everything seems to work... I've made a critical oversight. I'm guessing the transfer from the PC to Mac changed the original creation date. Yikes!
    I'll have to figure out how to transfer and keep the original creation dates.
    Thanks again!
    T

  • Aperture batch file rename: remove dashes from date?

    Just wondering if it is possible to change the format of the date from YYYY-MM-DD to YYYYMMDD when you rename files as they are imported into Aperture 3? I In Aperture 3, the date format used includes dashes. I would like to have the file renamed without the dashes in the date. Is this possible?
    This question was previously asked and answered in 2010, however Aperture does not seem to have an option for this it the batch rename edit menu. Thanks

    It is not possible in the Aperture naming presets to remove the dashes or in any way change the date format.
    The reason is that it is not possible to access the individual components of the date. When you drag an Image Date or Current Date token to form the filename you can't just get the day or the month or the year which is what you would have to be able to do to remove the dashes.
    There is no technical reason this couldn't be allowed, Apple has just made the decision that it won't be allowed. You can try sending feedback to Apple requesting this, see Aperture->Provide Aperture Feedback.
    It is possible to do what you want either before you import the files or with an Applescript eitehr beforre import or within Aperture.
    For doing it before import you would basically copy the image files from the  camera card to a folder and then import from there. There are several programs that you could use to do the rename, Name Mangler has been mentioned here a few times. I've never used it so I can;t vouch for it.
    As for an in Aperture Applescript solution if you are familair with programming and/or Applescript it isn't to difficult to do but would be easier with some prior knowledge.
    regards

  • Batch Foler Rename

    I have looked around the Internet for a script that I can drop a folder onto and have it change the name.
    At this time I am copy and pasting a job number in front of the folder to give it a job number. There are about eight folders that need a job number. Is there some type of script that you can drop a folder on to and have a symbol changed to a job number in a batch?
    Example $ Documents
    $ Originals
    $ Fonts
    Thanks

    I posted a script to rename folders whose name begin with 0000_
    You can easily adapt it for your situation:
    http://discussions.apple.com/thread.jspa?messageID=1458495&#1458495
    Read through the whole thread though, because things are hinged on your folder structure.

  • Folder Renaming Bug

    Hello,
    We have two (2 x 3 GHz Dual-Core Intel Xeon) machines running 10.4.9, networked with a server running Microsoft Windows Server 2003 5.2.3709 Service Pack 1 Build 3790. The Macs are set up as Admin, Managed Mobile user accounts. All work is stored on network file shares.
    One of our machines displays strange behaviour when folders are created or moved, from the mac across the network, on any of the fileshares. These issues are-
    1. When a new folder is created on any of the fileshares, from the mac, a duplicate folder automatically appears in the same directory of the fileshare. This file is only visible from the mac.
    2. When a folder is moved from any directory of the fileshare to any other directory, the folder name changes to duplicate a folder name already within the new directory. File names within the moved folder and its duplicate are also affected.
    We are extreamly busy at the moment and to reduce the risk of downtime I have been reluctant to run the 10.4.10 update.
    Can anyone help?

    certain characters cannot be used for folder or file naming on a mac. it gets confused and the usual pattern of behaviour is it then duplicates a folder or file name by the immediate one around it. the usual suspect that I can think of in folder or file names being cross platformed and that are carried over on networks might be something as simple as the folder name being a date. eg; 9/8/2007. the forward slash / is an illegal character for file or folder naming on a mac because it's system files depend on that character. try renaming folders and files without using chararcters and see if that fixes the problem.

  • Batch file rename

    I'm using Aperture (which has a fairly steep learning curve for me).  I'm frustrated with how difficult it is to rename jpg files.  I'm a former Windows user and this is the only regret I have about changing from Windows to Mac.  In Windows you can select all, rename.  That's it.  The complexity of renaming in Aperture feels beyond my comprehension.  Is there a simple way to rename jpg files that I haven't yet discovered?

    Use Metadata->Batch Change to change the names of multiple versions and masters.
    Crete the name format in the Version Name Format pull down and check the Apply to Master Files if you want to change the name of the master file as well as the version.

  • Batch file renaming

    How can I rename a group of files with heterogeneous names?
    I have a series of several hundred images, nealy all of which have unique, unrelated names.  I want to be able to rename them as a batch so they can be imported into quicktime pro to make a slideshow.
    so...
    need to chand bob.jpg, sam.jpg, boat.jpg, 3rt56.jpg to a sequence of newname01, newname02, newname03.jpg.
    The original image files do not have to be in any particular sequence when they are renamed, so it doesn't matter if boat.jpg or sam.jpg is renamed as newname01 - it doesn't matter what order they are presented in the planned quicktime slideshow. 
    I don't see an easy way to get automator to do this.
    Am I just going to have to bite the bullet and buy an app for this?
    Thanks in advance for any help and guidance!

    Thanks for the fast reply, Macjack.  Perhaps my understanding of Automator is too limited, but I don't see a way to completely change file names and to add a numeric sequence on the end of the new file name.  The "name changer" freeware also is limited in this regard - I tried it and couldn't get it to do what I need either.

  • Batch file renaming in Aperture??

    I have need to rename several files as a batch. Aperture can get me 99% of the way there, but there´s one thing I can´t seem to do...
    The naming scheme I need is
    [filname]_[yyyymmdd-hhmmss].jpg
    Where yyyymmdd is year, month, day and hhmmss is hours, minutes, seconds.
    Problem is Aperture puts dashes in the date and time like yyyy-mm-dd and hh-mm-ss. I tried to change is in the ITPC data, but it´s grayed out and says something about needing to be ISO compliant.
    All I need to do is have the file creation dates displayed in the filenames without those dashes.
    Is this possible?
    If so, how?

    under batch change chose edit under the presets drop down ...
    from there create a new by clicking the + in the left side ...
    from the choices on the right click and drag them up to the bar above it ... for your yyyymmdd just chose image year, image month, image day(date), putting them right next to each other no spaces, etc ... if you goof click in the bar and hit backspace ...
    let me know if i can help more, i can make a screenshot and post it to show exactly if needed ...

  • OPA and configuration folder rename

    Hi All,
    As we all know there is a configuration folder present in WEB-INF/CLASSES I wanted to rename this configuration folder to configuration_mm for this i edited application.properties file however now i need two folders one with configuration_mm where i keep my messages_en-US.properties file and one configuration/application.properties file
    can in any way i can keep my application.properties file in configuration_mm and discard the need of configuration folder i.e. tell my OPM to read application.properties from configuration_mm\application.properties

    Kunal,
    This can be achieved using shared library concept.

  • Batch Folder Save

    This photoshop is making my head hurt. I do not want to get a degree in nuclear biology in order to get the red eye out. So I don't use it, I use an ancient photo deluxe business 1.0 or something. It understands I am an idiot, and is cool with that.
    Then I have this whole folder of 116 files. It said they were jpg but would not open in ancient adobe. I tried my portable CS5 thing and went into File, automate, batch. It made me hit save for each one, and saved each one as a pdf file, which I didn't want, and that folder I can open in my ancient adobe, but I cannot blur or clone unless I save it as jpg and then open again.
    So all I want is to change this folder of PDF to JPG
    I searched here, downloaded a script somebody said to get, opened it and realized I don't know what it is or what to do with it, and deleted it. Searched some more, learned all about similar stuff. I tried again.
    What I don't understand is that one of the choices I can make near the top is to save as PDF, but there is no save as JPG. It keeps telling me to save an extension for destination but won't let me type jpg in there.
    Would some one please tell me step by step, in the batch dialog, what do I do to have it convert these PDF to JPG, without me having to "save as jpg" each one.
    I have 3 rows of:
    Document name       +     extensions
    But it doesn't say which on is the save to destination, and won't let me type jpg or .jpg and my head is hurting.

    function(){return A.apply(null,[this].concat($A(arguments)))}
    Lisa Denton wrote:
    I tried my portable CS5 thing
    Can you go into more detail about what you mean by "portable CS5 thing"?
    I've been hearing this term a lot lately, and some have implied it's pirated software.
    I'm not accusing anything, but I'd genuinely like to know what you mean by "portable".
    -Noel

Maybe you are looking for

  • Intermittent error in production server JBO-25200: Application module is not connected to a database.

    We've set 60 min as session timeout and AM pool parameters also high  (<AM-Pooling jbo.ampool.maxinactiveage="1200000" jbo.ampool.initpoolsize="25" jbo.ampool.maxpoolsize="1000" jbo.recyclethreshold="50" jbo.ampool.maxavailablesize="50" jbo.ampool.mi

  • My ITunes wont start.

    Everytime i try to start ITunes, a message appears saying that ITunes closed itself. I have downloaded the newest version, and I use a Macbook pro Here is what it says..... Process:         iTunes [643] Path:            /Applications/iTunes.app/Conte

  • Finding Key Values

    Hi, I want to check whether a row already exists in the VO level and the database before inserting. Due to the design, i will not be able to check this in the EO level. Im trying to use findInCacheByKey() in the VO and then executequery to check in d

  • Regarding push button for parameters

    initially there are two push buttons and the parameters should not be displayed. when any one push button is clicked on one parameter should be displayed. i had written the following code but is not working please help me with regards bob TABLES : SS

  • Tabular Form Populate from a query of other tables

    I am sure this can be done but we are especially new to Master-Detail relationships in Apex and to Tabular Forms (updateable reports). We are trying to populate a tabular form (updateable report) with values from a query. The user is simply going to