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

Change ALL extensions in a folder


Post Reply New Thread Subscribe

 
Thread Tools
TotaTua

 
TotaTua's Avatar
 
Member Since: Oct 26, 2010
Location: Ventura County
Posts: 6
TotaTua is on a distinguished road
Mac Specs: iMac 10.6.4 3.06 Core 2 Duo and MBPro 2.53 Core 2

TotaTua is offline
i have a folder of 7,000 images that need to have .jpg appended to all. how might i do this quickly so i can get them uploaded to Amazon store. Using MacPOS X and it doesn't care about the image extension.

Thanks for helping the temporarily brain dead. Google was not my friend on this search.
QUOTE Thanks
MYmacROX

 
MYmacROX's Avatar
 
Member Since: Mar 17, 2009
Posts: 3,611
MYmacROX is a name known to allMYmacROX is a name known to allMYmacROX is a name known to allMYmacROX is a name known to allMYmacROX is a name known to allMYmacROX is a name known to allMYmacROX is a name known to all
Mac Specs: 2008 15" MBP ML, 2012 21.5" iMac ML

MYmacROX is offline
Are they currently jpg's or some other file type that need to be changed to jpg's?
I ask because you might just need to turn on "Show All File Type Extensions" in Finder preferences.
Or they might need to be converted as a batch and there are ways of doing that too.

16GB iPhone 5, 64GB Wi-Fi only iPad 1st Gen.

Reminder: Please include your Mac's specs. This will make it much easier for the other members to assist you.
QUOTE Thanks
TotaTua

 
TotaTua's Avatar
 
Member Since: Oct 26, 2010
Location: Ventura County
Posts: 6
TotaTua is on a distinguished road
Mac Specs: iMac 10.6.4 3.06 Core 2 Duo and MBPro 2.53 Core 2

TotaTua is offline
Quote:
Originally Posted by MYmacROX View Post
Are they currently jpg's or some other file type that need to be changed to jpg's?
I ask because you might just need to turn on "Show All File Type Extensions" in Finder preferences.
Or they might need to be converted as a batch and there are ways of doing that too.
they are currently NOTHING or some have extensions which will be easy enough to change a handful rather than a gazillion
QUOTE Thanks
MYmacROX

 
MYmacROX's Avatar
 
Member Since: Mar 17, 2009
Posts: 3,611
MYmacROX is a name known to allMYmacROX is a name known to allMYmacROX is a name known to allMYmacROX is a name known to allMYmacROX is a name known to allMYmacROX is a name known to allMYmacROX is a name known to all
Mac Specs: 2008 15" MBP ML, 2012 21.5" iMac ML

MYmacROX is offline
Did you try turning on Show all filename extensions?

16GB iPhone 5, 64GB Wi-Fi only iPad 1st Gen.

Reminder: Please include your Mac's specs. This will make it much easier for the other members to assist you.
QUOTE Thanks
XJ-linux

 
XJ-linux's Avatar
 
Member Since: Jul 02, 2007
Location: Going Galt...
Posts: 3,356
XJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond repute
Mac Specs: MacBookAir5,2:10.9.4-MacMini3,1:10.9.4-iPhone6,1:7.1.2

XJ-linux is offline
You could cd to the directory and type this script in, hitting the enter key after each line...

ls > file
for i in `cat file`; do
mv $i $i.jpg
done

"Those who don't understand Unix are condemned to reinvent it, poorly." Henry Spencer
QUOTE Thanks
TotaTua

 
TotaTua's Avatar
 
Member Since: Oct 26, 2010
Location: Ventura County
Posts: 6
TotaTua is on a distinguished road
Mac Specs: iMac 10.6.4 3.06 Core 2 Duo and MBPro 2.53 Core 2

TotaTua is offline
Quote:
Originally Posted by MYmacROX View Post
Did you try turning on Show all filename extensions?
Thanks yes i did. these files have no extensions currently because they weren't needed originally.

TIA for your time which is valuable.
Claudia
QUOTE Thanks
TotaTua

 
TotaTua's Avatar
 
Member Since: Oct 26, 2010
Location: Ventura County
Posts: 6
TotaTua is on a distinguished road
Mac Specs: iMac 10.6.4 3.06 Core 2 Duo and MBPro 2.53 Core 2

TotaTua is offline
Quote:
Originally Posted by XJ-linux View Post
You could cd to the directory and type this script in, hitting the enter key after each line...

ls > file
for i in `cat file`; do
mv $i $i.jpg
done
have no idea how to do what you have suggested. that is similar to something i did long ago and far away on a pc. is this a terminal operation? sorry for being dense.

TIA for your time which is valuable.
Claudia
QUOTE Thanks
XJ-linux

 
XJ-linux's Avatar
 
Member Since: Jul 02, 2007
Location: Going Galt...
Posts: 3,356
XJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond repute
Mac Specs: MacBookAir5,2:10.9.4-MacMini3,1:10.9.4-iPhone6,1:7.1.2

XJ-linux is offline
Yep. Just open the terminal.app and cd to the directory the files are in. Tpye pwd to double check you are in the correct directory.

"Those who don't understand Unix are condemned to reinvent it, poorly." Henry Spencer
QUOTE Thanks
XJ-linux

 
XJ-linux's Avatar
 
Member Since: Jul 02, 2007
Location: Going Galt...
Posts: 3,356
XJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond repute
Mac Specs: MacBookAir5,2:10.9.4-MacMini3,1:10.9.4-iPhone6,1:7.1.2

XJ-linux is offline
Here's an example where I do this in a directory called /Users/username/test on four files named test1, test2, test3 and test4:

MacGyver:test username$ pwd
/Users/dcram/test
MacGyver:test username$ ls > file
MacGyver:test username$ for i in `cat file`; do
> mv $i $i.jpg
> done
MacGyver:test username$ ls
file.jpg test1.jpg test2.jpg test3.jpg test4.jpg
MacGyver:test username$ rm file.jpg
MacGyver:test username$ ls
test1.jpg test2.jpg test3.jpg test4.jpg
MacGyver:test username$

"Those who don't understand Unix are condemned to reinvent it, poorly." Henry Spencer
QUOTE Thanks
TotaTua

 
TotaTua's Avatar
 
Member Since: Oct 26, 2010
Location: Ventura County
Posts: 6
TotaTua is on a distinguished road
Mac Specs: iMac 10.6.4 3.06 Core 2 Duo and MBPro 2.53 Core 2

TotaTua is offline
Quote:
Originally Posted by XJ-linux View Post
Here's an example where I do this in a directory called /Users/username/test on four files named test1, test2, test3 and test4:
THANK YOU, so can i assume that dos commands work in Terminal? i have been reluctant to work in terminal b/c of horror stories. Your script made it easy peasy!

TIA for your time which is valuable.
Claudia
QUOTE Thanks
XJ-linux

 
XJ-linux's Avatar
 
Member Since: Jul 02, 2007
Location: Going Galt...
Posts: 3,356
XJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond repute
Mac Specs: MacBookAir5,2:10.9.4-MacMini3,1:10.9.4-iPhone6,1:7.1.2

XJ-linux is offline
Glad it worked. These are Unix commands, not DOS. Similar but different so please never try running DOS commands on a Mac.

"Those who don't understand Unix are condemned to reinvent it, poorly." Henry Spencer
QUOTE Thanks
TotaTua

 
TotaTua's Avatar
 
Member Since: Oct 26, 2010
Location: Ventura County
Posts: 6
TotaTua is on a distinguished road
Mac Specs: iMac 10.6.4 3.06 Core 2 Duo and MBPro 2.53 Core 2

TotaTua is offline
Quote:
Originally Posted by XJ-linux View Post
Glad it worked. These are Unix commands, not DOS. Similar but different so please never try running DOS commands on a Mac.
so how would i modify the script for an if command.
if the extension is .doc don't change is what I am trying to do.
it is the wildcards that i don't understand.

TIA for your time which is valuable.
Claudia
QUOTE Thanks

Post Reply New Thread Subscribe


« OS X and New twitter? | RAM for my iBook OS 10.4.22 (? .11) »
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
DVD2oneX change output folder? faithhopelove Movies and Video 2 12-31-2008 03:34 PM
need help with folder actions re-volt OS X - Apps and Games 0 03-15-2008 08:32 AM
What do you use to change music extensions? PozerPhoLife Music, Audio, and Podcasting 1 11-26-2007 01:30 AM
1How to change the look of the folders the8thark OS X - Operating System 8 11-20-2007 12:58 PM
argghh: itunes music folder indapino22 iPod Hardware and Accessories 9 04-04-2007 02:44 AM

All times are GMT -4. The time now is 10:22 PM.

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?