mishgolf
Aspiring developer
Profile
Posts: 98
Reg: Nov 02, 2012
Sunshine Coast,...
980
01/16/14 11:37 PM (11 years ago)

batch change case for eclipse from xcode

hey everyone, i need to be able to change all my file names to lowercase for eclipse to recognise them, i have all my image files in capital letters and it wasnt a problem developing in IOS but now i have tried it for android and they require lowercase for everything. i have over 500 image files to change and of course the link names in the code. has anyone else come across this problem? thanks mishgolf
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/17/14 01:25 AM (11 years ago)
Fortunately, if you've been doing work for Xcode, you're on a Mac. The built in "Automator" app (in Applications) is perfect for that sort of thing. You can rename an entire directory in a matter of seconds with the right script. Do a google search, and play around with some copies so you don't muck up the originals, but I think you'll find a wealth of possibilities in the automator. as for your code, I'm not sure what to do about that just yet… let me chew on it for a few. Cheers! -- Smug
 
mishgolf
Aspiring developer
Profile
Posts: 98
Reg: Nov 02, 2012
Sunshine Coast,...
980
like
01/17/14 01:31 AM (11 years ago)
cheers smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/17/14 02:27 AM (11 years ago)
I know it can be done… you've got a Mac, so you can use either sublime or TextWrangler to do a search and replace… but not a 'normal'; you'll need to use regex. (bring up the 'find' dialog, and find 'grep' as an option. You'll want to check it for this excersise). I just can't find the right regex pattern for changing a filename from upper to lower case. Does it have any kind of pattern, (Image01.png, Image02.png) or is it random (BOAT.png, Flower.png) ? Any info would help figure this out. Cheers! -- Smug
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/17/14 04:19 AM (11 years ago)
I use the text editor and then for the file names I use Namemangler for MAC: http://manytricks.com/namemangler/ I hope that helps
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/17/14 09:27 AM (11 years ago)
Dang -- does Android really require all that TLC?
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/17/14 09:46 AM (11 years ago)
lol.. when you don't remember the first time those darn eclipse limits, it does need a little more love
 
mishgolf
Aspiring developer
Profile
Posts: 98
Reg: Nov 02, 2012
Sunshine Coast,...
980
like
01/20/14 04:59 AM (11 years ago)
thanks for the help everyone. smug they are fitness exercises and are names after the exercise, so random to answer your question. question: if i need to find the code in xcode of a custom html page i have made in buzztouch, where in xcode do i find it? cheers mishgolf
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.