Drag Mail.app attachments to certain Open dialogs

Nov 07, '05 05:23:00AM

Contributed by: wilton

A client of mine recently emailed me a JPEG destined for a web site, because she was having trouble using the file upload feature on a web form I created.

Rather than telling Mail to save the attachment, then switching to Safari to choose the file to open, I just dragged the attached image directly from the Mail message window to Safari's File: Open dialogue window. This then uses the path /private -> var -> tmp -> folders.501 -> TemporaryItems -> com.apple.mail.drag for the source, and you'll see the attachment(s) you were dragging in the dialog box.

[robg adds: This should work with Open dialog boxes in any Cocoa application. I'm not sure about Carbon or Java in general; I tried it with Word and BBedit (Carbon) and jEdit (Java), and it didn't work in any of them, so this may be a Cocoa-only feature.]

Comments (3)


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