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

Insert text files into documents via drag and drop Apps
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 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...]
  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)

Insert text files into documents via drag and drop | 2 comments | Create New Account
Click here to return to the 'Insert text files into documents via drag and drop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Authored by: useEvil on Aug 21, '02 06:16:04PM

BBEdit will put the contents of the file at the cursor location. If you drag a folder to a BBEdit window you'll get a list of the contents, indented by hierarchy.

[ Reply to This | # ]
path insertion
Authored by: pmccann on Aug 21, '02 11:15:40PM

... and if you\'re a BBEdit user and really do want the path to be inserted instead of the contents of the file you can simply command-drag the file (or folder) into the BBEdit window. This doesn\'t work in textedit however: dragging/command-dragging a file inserts a little icon into your document, or inserts the file contents if the file\'s a gif (etc). Funkorama.


[ Reply to This | # ]