Insert text files into documents via drag and drop

Aug 21, '02 09:36:11AM

Contributed by: ppmax

If you have a text edit app (ive tried Word, BBEdit) in the background, dragging a file from a Finder window onto the open text document inserts the contents of the file at the current cursor position. I was expecting the path to the file to show up (similar to the behavior of dragging a file onto an open terminal window). For some reason this doesn't seem to work when dragging a text file onto an open TextEdit.app window, so perhaps it's app specific.

Anyways, it's a useful feature that I've begun to use for reusing chunks of PHP I may have written previously into new documents.

[Editor's note: I think this has been true for many apps for quite a few years, but it may not be known by everyone...]

Comments (2)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20020821093611562