Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Anyone know of a way to simply select and copy text from a file open in Quick Look?

Our project managers really enjoy sending out change requests as attached .doc files, and I'd really love to be able to hit spacebar, copy the text, and paste the text into my preferred editor without having to fire up Word (or Office alternative).

share|improve this question

2 Answers 2

up vote 5 down vote accepted

If you want it in your clipboard, how about:

textutil -convert txt -stdout file.doc | pbcopy

If you want it in a TXT file, textutil can put it right there for you too.

If you aren't on the command line, then you can make this an app via Automator and bind that to a keystroke other than QuickView Space

share|improve this answer
    
Nice. I didn't even consider textutil. I've added your command to my bash aliases and am passing the filename as an arg. Also, for others reading who may not like CLI, I also forgot about right-clicking and selecting "Open With" TextEdit, which has a much smaller footprint than Office. –  HaL May 5 '11 at 14:09
    
I dod not know about textutil, thanks for the tip! –  fnurl May 6 '11 at 7:22
1  
@Hal you can also set TextEdit as the default app for .doc, so you don't have to navigate sub-menues, just open it... –  user588 May 15 '11 at 20:27

If you really want to copy text from Quick Look you can try the default

QLEnableTextSelection -bool TRUE

Open Terminal.app and paste this on the command line

defaults write com.apple.finder QLEnableTextSelection -bool TRUE

press return and restart the Finder (or Logout and Login) and you can select and copy text direct in QL.

share|improve this answer
1  
Please notice that the activation of the "Text-Selection-In-Quicklook"-Feature could lead to the bug described in this question: QuickLook having problems displaying some images –  bobndrew Aug 2 at 21:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.