Results 1 to 12 of 12
  1. #1


    Member Since
    Jun 26, 2007
    Posts
    3
    HowTo rename many files *.jpg to new ?
    I have a folder with thousands of random image file names like:

    102.jpg, or 01.jpg or 83.jpg or something.jpg

    some are also *.gif

    How to select them all and rename the files to something with an automatic renaming scheme say, starting with:

    01.jpg
    02.jpg
    and so on....

    I just started to read about AppleScript, so I am totally new to it and don't have the skill to do something like that, can anyone have ideas ? how to do this ?

  2. #2

    PunkRockTuba's Avatar
    Member Since
    May 27, 2005
    Location
    Oklahoma City, OK
    Posts
    975
    Specs:
    17" MacBook Pro, 8GB iPhone
    First, welcome to the forums.

    Second, what you want to do can easily done with a program called automator, this program is already on your computer. Use spotlight or look in the applications folder to find it.

    When you open automator, on the left is the library and that is all the actions you can perform. The applications folder should be expanded, if not then expand it. Then in the list of applications, select Finder then in the column just to the right will show the actions you can perform.

    In the actions column select, "Get Specified Finder Items", then drag this action to the big column on the far left and it should add the action. The second action you need to find is the one called, "Rename Finder Items" and drag that under the far right action. It should have added an extra action called, "Copy Finder Items", this is good.


    Ok now what you want to do is click the + on the very first action at the top, and you want to navigate to the folder with your pictures select all the pictures and hit open to add them to the window. Then you want to make a folder somewhere on your computer so when automator copies the images, it has a place to put them.

    Then in the second action click the drop down menu and select "other" and navigate to the folder you just created, then click open to select that folder. Finally you are to the point where you decide what to name the files. Click the drop down menu and select, "Make Sequential" Then check the box that says "New Name", and you have to give the files a name. The rest is pretty self explanatory, when youre ready to run the workflow, click the play button at the top right.


    Sorry this is a lot of text, but automator is a little odd at first and I thought a total walkthrough might help more than just saying, "use automator."

  3. #3


    Member Since
    Nov 27, 2006
    Posts
    440
    Specs:
    Power Mac G5 Dual 1.8 GHz
    Use Renamer4Mac. ;p
    Cog 0.07 audio player - cogx.org
    AAC, AIFF, APE, FLAC, M4A, MP3, MPC, OGG, SHN, WAV, WV, tracker formats,
    VG music formats, cue sheets, M3U & PLS, Growl, Last.fm, Apple Remote
    Latest Nightly Build (0.08) (new interface!) - Got ideas? Report bugs?

  4. #4

    baggss's Avatar
    Member Since
    Oct 10, 2004
    Location
    Margaritaville
    Posts
    10,311
    Specs:
    27" 3.4 Ghz i7 iMac-13" C2D Macbook-OSX 10.10.2 -64Gb iPad 2-64 Gb iPhone 6+-ATV 2-14Tb of Storage
    Quote Originally Posted by remain View Post
    Use Renamer4Mac. ;p
    Nice little App, thanks for that. + Rep!


  5. #5


    Member Since
    Oct 27, 2005
    Posts
    4,702
    Quote Originally Posted by PunkRockTuba View Post
    First, welcome to the forums.

    Second, what you want to do can easily done with a program called automator, this program is already on your computer. Use spotlight or look in the applications folder to find it.

    When you open automator, on the left is the library and that is all the actions you can perform. The applications folder should be expanded, if not then expand it. Then in the list of applications, select Finder then in the column just to the right will show the actions you can perform.

    In the actions column select, "Get Specified Finder Items", then drag this action to the big column on the far left and it should add the action. The second action you need to find is the one called, "Rename Finder Items" and drag that under the far right action. It should have added an extra action called, "Copy Finder Items", this is good.


    Ok now what you want to do is click the + on the very first action at the top, and you want to navigate to the folder with your pictures select all the pictures and hit open to add them to the window. Then you want to make a folder somewhere on your computer so when automator copies the images, it has a place to put them.

    Then in the second action click the drop down menu and select "other" and navigate to the folder you just created, then click open to select that folder. Finally you are to the point where you decide what to name the files. Click the drop down menu and select, "Make Sequential" Then check the box that says "New Name", and you have to give the files a name. The rest is pretty self explanatory, when youre ready to run the workflow, click the play button at the top right.


    Sorry this is a lot of text, but automator is a little odd at first and I thought a total walkthrough might help more than just saying, "use automator."
    That's an excellent post PunkRockTuba!

    I followed your method to the letter but it didn't work initially. When I selected the second action, a window popped up asking me if I wanted to copy the files instead just incase something went wrong. The first time I said OK to that and the whole script failed. The second time I said No to it and therefore I didn't have the option to create a new folder for the copies to be stored. That meant I only had two scripts in the far right window instead of three. The Automator script was totally successful this time!

    I had a folder full of .avi's, mpeg's, jpeg's with totally random names and I was able to successfully rename the lot to a new name with sequential number added too!

    I have only had a passing look at Automator and it's great to know that it can handle the renaming of random files with ease. Thanks for that walk-through!



  6. #6

    PunkRockTuba's Avatar
    Member Since
    May 27, 2005
    Location
    Oklahoma City, OK
    Posts
    975
    Specs:
    17" MacBook Pro, 8GB iPhone
    Quote Originally Posted by Pulse-8 View Post
    That's an excellent post PunkRockTuba!
    Thanks, hopefully it will come in handy in a search.

  7. #7


    Member Since
    Oct 27, 2005
    Posts
    4,702
    Quote Originally Posted by PunkRockTuba View Post
    Thanks, hopefully it will come in handy in a search.
    I must say I was impressed that Automator could handle the batch renaming of such a confused collection of different file names and file types that I threw at it.

    This question of how do I rename in batch does come up a lot and the main answer even I gave involved either the pre-installed AppleScript method OR a 3rd Party Software app like A Better Finder Rename.

    Both those options always want to know which text you want to change and when you have a missmatch of file names, it's been near impossible to fully change them just as you'd like.

    Automator, on the other hand, doesn't need to know the text you want changed which is a blessing.

    If you hadn't spelt it out so concisely I wouldn't have discovered how great Automator is as I just don't have the concentration to sit down with it to learn how to unleash it's power ....

  8. #8


    Member Since
    Jun 26, 2007
    Posts
    3
    Thanks for the help as well! The Automator didn't work for me, it's not doing as described, maybe the way they are in order is wrong ?

    From top to bottom what is the exact order of the automator actions ?

    Thanks!

  9. #9


    Member Since
    Jun 26, 2007
    Posts
    3
    Ahhhh it worked, the order of the Automator Actions was incorrect and also when I was selecting the original pics, I selected the folder, thinking it would look inside, but one has to select all the pictures within the folder.

    I do this by selecting the picture from the top, holding down the shift, scrolling all the way down to the last pic and press the mouse button, it selects them all for me.

    The order that I have is from top to bottom.

    1. Get Specified Fider Items (to located pics first) - select the individual files, using folder don't seem to work
    2. Rename the Files Items (to rename the files)
    3. Copy Finder Items (copy new files into new location)

    Works like a charm, I am going to have to read a book to learn more about this Automator, it's the coolest thing since sliced cheese, thanks!

  10. #10

    PunkRockTuba's Avatar
    Member Since
    May 27, 2005
    Location
    Oklahoma City, OK
    Posts
    975
    Specs:
    17" MacBook Pro, 8GB iPhone
    Yea automator is a nice program once you can figure out how to use it, I really like it for making thumbnails of images for websites.

    The order I had stuff for your question RompStar was:

    Get Specified Finder Items
    Copy Finder Items
    Rename Finder Items

    but obviously either order works, I just liked it to copy the files first so if anything messes up you dont harm the original files.

  11. #11

    eric's Avatar
    Member Since
    Nov 04, 2006
    Location
    twin cities, mn, usa
    Posts
    8,708
    automator definitely has issues with ordering files, even if they are all named something like:

    image001.jpg
    image002.jpg
    image003.jpg

    i'd tried everything i could think of to make it keep a particular order and nothing seems to work.


    renamer4mac keeps the original order every time. it's so important to me, i didn't even bother putting it in the dock... it's right on my finder toolbar.
    Please participate in our Member of the Month polls. Every vote counts! And remember to use the user reputation system!
    ["Dear Homer, I. O. U. one emergency donut. Signed, Homer." - Note by Homer Simpson]

  12. #12


    Member Since
    Jul 18, 2012
    Posts
    1
    Wink Thanks !
    Awesome post. Helped a lot. Thanks

    Quote Originally Posted by PunkRockTuba View Post
    First, welcome to the forums.

    Second, what you want to do can easily done with a program called automator, this program is already on your computer. Use spotlight or look in the applications folder to find it.

    When you open automator, on the left is the library and that is all the actions you can perform. The applications folder should be expanded, if not then expand it. Then in the list of applications, select Finder then in the column just to the right will show the actions you can perform.

    In the actions column select, "Get Specified Finder Items", then drag this action to the big column on the far left and it should add the action. The second action you need to find is the one called, "Rename Finder Items" and drag that under the far right action. It should have added an extra action called, "Copy Finder Items", this is good.


    Ok now what you want to do is click the + on the very first action at the top, and you want to navigate to the folder with your pictures select all the pictures and hit open to add them to the window. Then you want to make a folder somewhere on your computer so when automator copies the images, it has a place to put them.

    Then in the second action click the drop down menu and select "other" and navigate to the folder you just created, then click open to select that folder. Finally you are to the point where you decide what to name the files. Click the drop down menu and select, "Make Sequential" Then check the box that says "New Name", and you have to give the files a name. The rest is pretty self explanatory, when youre ready to run the workflow, click the play button at the top right.


    Sorry this is a lot of text, but automator is a little odd at first and I thought a total walkthrough might help more than just saying, "use automator."

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Basic HowTo: Using MTS/M2TS files in FCP/FCE/iMovie
    By Nethfel in forum Movies and Video
    Replies: 10
    Last Post: 04-02-2014, 09:57 AM
  2. How to rename all files at once?
    By dk7 in forum OS X - Operating System
    Replies: 26
    Last Post: 03-14-2014, 09:38 AM
  3. Rename RAW & JPG all in one hit
    By MinnieMouse9 in forum Images, Graphic Design, and Digital Photography
    Replies: 4
    Last Post: 03-17-2013, 01:58 PM
  4. 1) find all files with a 2 or 3 or 4.jpg 2) delete those files
    By Sam B in forum OS X - Operating System
    Replies: 2
    Last Post: 05-01-2010, 02:12 PM
  5. jpg files converted to tiff files
    By cmeffa in forum Images, Graphic Design, and Digital Photography
    Replies: 6
    Last Post: 04-18-2009, 12:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •