I am in an online class and need to send a folder with 10 files to the teacher. The pc uses can use F2 and it will rename all the files with the one name of the folder. Does anyone know how to do this on the Mac Ibook?
I am in an online class and need to send a folder with 10 files to the teacher. The pc uses can use F2 and it will rename all the files with the one name of the folder. Does anyone know how to do this on the Mac Ibook?
Automator should do the trick for batch changes like that.
liked the script.
tried to modify it to remove the .txt extension of ALL files in a directory and make copies
these files are named 1.txt , 2.txt , etc
like so
#!/bin/bash
for i in *
do
cp $i.txt $i #The mv command means move. Use cp to copy.
done
got a LOT of errors for example
cp: 990.txt.txt: No such file or directory
help?
cp $i ${i%.txt}
Renaming utilities: (google them)
Name Mangler
NameChanger
Renamer4Mac
Automator (not as good as the others)
Is there a way where I can change the names of all the files to say MTP 2011 xx xx.xls? Basically I want to preserve the unique date, remove "by XYZ" and modify (shorten) the "Multiproduct Technical Report" to something like "MTP"?
Thank you for your help.
sm
#!/bin/bash
#
# Check for arguments
if [ $# -ne 1 ]
then
echo "Arguments: <file to be renamed>"
exit 1
fi
# Make sure that the file name is of the form: ""Multiproduct Technical Report for ${date} by ${name}.xls"
test=$(echo "$1" | grep -P "^Multiproduct Technical Report for \d{4}\s\d{2}\s\d{2} by \w+\.xls$")
if [ -n "$test" ]
then
date=$(echo "$1" | cut -d" " -f5-7)
[COLOR="SeaGreen"]echo "MTP ${date}.xls"[/COLOR]
[COLOR="Red"]#mv "$1" "MTP ${date}.xls"[/COLOR]
fi
Cant believe why apple make it so complicated for some frequently use functions!!!! It sounds like we are going back to the apple 2 age... need to memorize all the commands!!!
Do they have any idea there is a big room for them to improve and make it really USER FRIENDLY!!!????
really makes me sick!!!
Hello!
I think I'm having the same problem of Darice Terry, but I'm guessing, since he's never replied again to his own thread.
Just today I was looking for a friendly way to rename multiple files with the same name (different extensions of course!) on Mac OS X Lion, but I haven't found any yet.
Let me explain. With Windows 7, in order to rename two files at once, for example an AVI file with a Subtitles file:
file1.avi
file2.srt
I can select them both, press F2 (or Right click > Rename), and type the new name once. The result will be:
new_name.avi
new_name.srt
With OS X, I have to click on the first file and type the new name, then click on the second file and do the same.
Is there an easier way, not involving scripting? I can't believe that Windows can be more user friendly than OS X
Thanks!
You're in the programming section.
Terminal, man mv