Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Copy and Paste text in finder

Hi,
I need to copy the file names in a folder I have containing 36 mp4 video files and paste the file names in text edit. Evey time I do a copy and paste the video files paste in text edit without names but what does get pasted is the video. Does anyone know how to copy the file names in the finder and pasting only the names in text edit? Thanks

Jon

Mac OS X (10.4.6)

Posted on May 15, 2006 8:42 AM

Reply
8 replies

May 15, 2006 8:54 AM in response to JDIRECTORJ

One way is to use the terminal:

1. Open Applications -> Utilities -> Terminal

2. type at the prompt

ls -a

followed by a space. Do not hit enter yet

3. Navigate to the parent folder of the mp4 files and drag the folder into the Terminal. Its path will appear. Follow that path by a greater than symbol and the filename myfile.txt and hit enter.

4. Go to your Home folder and open the file myfile.txt with TextEdit

May 15, 2006 9:06 AM in response to JDIRECTORJ

Open a new Text Edit document, hit Command-Shift-T to switch from Rich Text to plain text, then choose Edit > Paste to paste in the names of the files.

If you need the names to be in alphabetical order and they seem to be pasted out of order, switch your Finder window to Column view before copying the filenames.

Hope this helps.....

Dual 2.7GHz PowerPC G5 w/ 2.5 GB RAM; 17" MacBook Pro w/ 2 GB RAM - Mac OS X (10.4.6)

May 15, 2006 5:34 PM in response to JDIRECTORJ

I'm just curious. I finally got back to my Mac, and my instructions did work. I wonder if you did the following if it would work?

ls -a "/Volumes/A4A\ MEDIA\ STORAGE/mp4s\ for\ mobile/" >myfile.txt

it may be the problem is how you named the path, and it is getting messed up because of that. If there are spaces in place of the slashes above in the actual names, using the quotes allows you to use spaces, so removing those slashes for spaces where the real name has a space.

Copy and Paste text in finder

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.