New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - HowTo rename many files *.jpg to new ?


Post Reply New Thread Subscribe

 
Thread Tools
RompStar

 
Member Since: Jun 26, 2007
Posts: 3
RompStar is on a distinguished road

RompStar is offline
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 ?
QUOTE Thanks
PunkRockTuba

 
PunkRockTuba's Avatar
 
Member Since: May 27, 2005
Location: Oklahoma City, OK
Posts: 975
PunkRockTuba is just really nicePunkRockTuba is just really nicePunkRockTuba is just really nicePunkRockTuba is just really nice
Mac Specs: 17" MacBook Pro, 8GB iPhone

PunkRockTuba is offline
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."
QUOTE Thanks
remain

 
Member Since: Nov 27, 2006
Posts: 440
remain is a jewel in the roughremain is a jewel in the rough
Mac Specs: Power Mac G5 Dual 1.8 GHz

remain is offline
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?
QUOTE Thanks
baggss

 
baggss's Avatar
 
Member Since: Oct 10, 2004
Location: Margaritaville
Posts: 10,309
baggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond repute
Mac Specs: 27" 3.4 Ghz i7 iMac-13" C2D Macbook-OSX 18.8.2-64Gb iPad 2-32 Gb iPhone 5-ATV 2-14Tb of Storage

baggss is offline
Quote:
Originally Posted by remain View Post
Use Renamer4Mac. ;p
Nice little App, thanks for that. + Rep!


QUOTE Thanks
NanoBite

 
Member Since: Oct 27, 2005
Posts: 4,714
NanoBite is an unknown at this point

NanoBite is offline
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!


QUOTE Thanks
PunkRockTuba

 
PunkRockTuba's Avatar
 
Member Since: May 27, 2005
Location: Oklahoma City, OK
Posts: 975
PunkRockTuba is just really nicePunkRockTuba is just really nicePunkRockTuba is just really nicePunkRockTuba is just really nice
Mac Specs: 17" MacBook Pro, 8GB iPhone

PunkRockTuba is offline
Quote:
Originally Posted by Pulse-8 View Post
That's an excellent post PunkRockTuba!
Thanks, hopefully it will come in handy in a search.
QUOTE Thanks
NanoBite

 
Member Since: Oct 27, 2005
Posts: 4,714
NanoBite is an unknown at this point

NanoBite is offline
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 ....
QUOTE Thanks
RompStar

 
Member Since: Jun 26, 2007
Posts: 3
RompStar is on a distinguished road

RompStar is offline
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!
QUOTE Thanks
RompStar

 
Member Since: Jun 26, 2007
Posts: 3
RompStar is on a distinguished road

RompStar is offline
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!
QUOTE Thanks
PunkRockTuba

 
PunkRockTuba's Avatar
 
Member Since: May 27, 2005
Location: Oklahoma City, OK
Posts: 975
PunkRockTuba is just really nicePunkRockTuba is just really nicePunkRockTuba is just really nicePunkRockTuba is just really nice
Mac Specs: 17" MacBook Pro, 8GB iPhone

PunkRockTuba is offline
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.
QUOTE Thanks
eric

 
eric's Avatar
 
Member Since: Nov 04, 2006
Location: twin cities, mn, usa
Posts: 8,801
eric has a reputation beyond reputeeric has a reputation beyond reputeeric has a reputation beyond reputeeric has a reputation beyond reputeeric has a reputation beyond reputeeric has a reputation beyond reputeeric has a reputation beyond reputeeric has a reputation beyond reputeeric has a reputation beyond reputeeric has a reputation beyond reputeeric has a reputation beyond repute

eric is offline
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]
QUOTE Thanks
Against Nudity

 
Member Since: Jul 18, 2012
Posts: 1
Against Nudity is on a distinguished road

Against Nudity is offline
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."
QUOTE Thanks

Post Reply New Thread Subscribe


« Can't Clear Up Room on my HD! | NEC 45C6 Printer - Lion OS »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
How do I rename a calendar in iCal ItsMeDave Switcher Hangout 2 04-24-2007 11:55 AM
apple menu shortcut? rename files? eric Switcher Hangout 13 11-08-2006 10:57 PM
How do i rename files ? pocketaces Switcher Hangout 6 12-25-2005 04:27 PM
Won't let me rename James Apple Desktops 5 01-02-2005 08:30 PM
How do I rename a file, *please don't laugh at me" tv-ma Switcher Hangout 17 06-19-2004 05:34 AM

All times are GMT -4. The time now is 04:14 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?