Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Highlight the selected text in text clippings Desktop
In this previous hint it was noted that it is possible to make and copy a portion of a text clipping. The task is made more difficult, however, because you can't see what you're selecting (there's no highlight). I have figured out that it is possible to make some changes so that you go get feedback of what is actually selected before you copy it.

We will need to modify a Finder's file, so take the usual precautions: back up your stuff! In short:
  1. Edit the objects.xib file, found at /System » Library » CoreServices » Finder.app » Contents » Resources » your_language.lproj » ClipWindow.nib » objects.xib.
  2. Change this line:
    <boolean name="noSelection">TRUE</boolean>
    to
    <boolean name="noSelection">FALSE</boolean>
    Then save your changes.
  3. Restart the finder.
Read on for a more detailed walkthrough...

In detail:
  1. Go to this path: /System » Library » CoreServices » Finder.app » Contents » Resources. Here you will find one folder for each language that you have installed. In Terminal, change the directory to the language where you want to make the changes. I use Spanish so cd Spanish.lproj/.
  2. Now you have to cd to ClipWindow.nib: cd ClipWindow.nib/.
  3. Edit the file objects.xib (you should make a backup of this file first): sudo mate objects.xib -- I use TextMate, but you could use your favorite editor. You will need to edit the file with root privileges.
  4. Change this line:
    <boolean name="noSelection">TRUE</boolean>
    to
    <boolean name="noSelection">FALSE</boolean>
    Save your changes and quit the editor.
  5. Press Command-Option-Escape (or use Terminal, the Finder's contextual Dock menu, or Activity Monitor) and relaunch the finder.
Now if you open a text clipping you will get the usual selection capabilities, complete with highlighting.
    •    
  • Currently 3.14 / 5
  You rated: 5 / 5 (7 votes cast)
 
[26,037 views]  

Highlight the selected text in text clippings | 15 comments | Create New Account
Click here to return to the 'Highlight the selected text in text clippings' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Highlight the selected text in text clippings
Authored by: Tulse on Mar 12, '07 08:39:47AM

This is an excellent hint -- it really makes clippings much more useful. I had been using the previously-mentioned selection hint, but having feedback on the selected area makes a huge difference.



[ Reply to This | # ]
Great!
Authored by: juanfal on Mar 12, '07 09:00:41AM
It is really silly that the System do not have it as default. It is a great idea. Also it possible to activate the edition making

<boolean name="readOnly">FALSE</boolean>
in the line before. Then, although it will not save the changes you can now make, the changes and the surrounding text may be copied making up the final scrap you were looking for.

[ Reply to This | # ]
Highlight the selected text in text clippings
Authored by: callefjant on Mar 12, '07 12:19:21PM

Excellent! Thanks!

(One can also restart Finder by option-rightclick its icon in the Dock).



[ Reply to This | # ]
Highlight the selected text in text clippings
Authored by: GORDYmac on Mar 12, '07 04:00:05PM

WOW! This sould totally be how text clippings should work. Thanks.



[ Reply to This | # ]
Thanks
Authored by: chleuasme on Mar 12, '07 05:43:51PM

Great hint !

One last thing to succeed in : have a Spotlight content indexation of .textClipping files
(or I miss the trick ?)



[ Reply to This | # ]
Thanks
Authored by: juanfal on Mar 13, '07 01:37:14AM

yes, look for the "TextClippingTotalEditor.app".



[ Reply to This | # ]
Thanks
Authored by: chleuasme on Mar 13, '07 09:51:55AM
I don't know if it's what you're talking about, but I've just found TextClipping.mdimporter :
http://homepage.mac.com/holtmann/eidac/software/software.html]TextClipping.mdimporter
that works fine :-)

thanks btw, I had given up the idea to find that, and hadn't searched things about it for a while

[ Reply to This | # ]
Highlight the selected text in text clippings
Authored by: AveryTimm on Mar 13, '07 02:58:01PM

Ever since the introduction of text clippings I have never understood why the text in them is not selectable.



[ Reply to This | # ]
Highlight the selected text in text clippings
Authored by: ventifact on Oct 28, '07 07:34:00PM

This works in Tiger!

---
OSX 10.4.9, 20" 1.8GH iMac



[ Reply to This | # ]
Highlighted text does not copy
Authored by: febef on Dec 31, '07 07:26:53PM

Thanks to the hint I can now highlight text, but it does not get copied, neither with Command-C nor via the Edit>Copy menu. The clipboard just retains and pastes whatever has been copied before. Am I missing something?



[ Reply to This | # ]
Doesn't work in Leopard
Authored by: Stormchild on Feb 20, '08 02:41:47PM

In Leopard, although this allows you to select text in a clipping, when you press Command-C, the selected text does not get copied. It is also not possible to click-hold and drag the selection out. Additionally, after modifying the Finder resource, you can no longer close clipping windows with Command-W.

In short, this just plain doesn't work in Leopard, and only makes things worse.



[ Reply to This | # ]
Doesn't work in Leopard
Authored by: nateleavitt on Jul 29, '08 11:47:26AM
I am really annoyed at the fact that text clippings are so ignored by Apple. I love the functionality of creating text clippings, but not being able to use them in any way is annoying.

For those of you on leopard, I discovered a little app that I have found to be very useful. It's found here: [link:http://www.macupdate.com/info.php/id/6097/clipedit]

It's small/lightweight. Works great!

[ Reply to This | # ]
Doesn't work in Leopard
Authored by: nateleavitt on Jul 29, '08 11:48:49AM
10.6 Now Highlights by Default
Authored by: joelbruner on Oct 19, '09 12:46:15PM

Yes, 10.6 now will show a Text Clipping's highlighted area. No nib editing needed (as it'd probably break Code Signing anyway!)



[ Reply to This | # ]
Highlight the selected text in text clippings
Authored by: interslice on Mar 11, '10 11:05:40AM

I have tried to do all these things and i'm failing miserably
The problem i encounter is not normal?

keyedobjects.nib is the only file i have in the Clipwindow.nib file
and therefore i cannot edit the .xib file?!

i upgraded from 10.4 - 10.6 ! perhaps that is the issue?



[ Reply to This | # ]