On 30 Mar 2005, at 14:48, Allan Odgaard wrote:
On Mar 30, 2005, at 12:34, Michael wrote:
Interestingly this morning after re-launching Textmate when I drag and drop an image I get:
Error 4: no file was specified
I just noticed that the $TM_DROPPED_FILE variable (and $img) should have been quoted in the drag command (in case the file path contains a space), though I'd think this would give another error code.
Could you try to change the drag command simply to: echo $TM_DROPPED_FILE
That should then output the path dropped (relative to the directory of the file).
Thanks: that works - with just the path to the file being inserted. How do I modify it so that when I drag an image file to a document I get:
<img src="path_to_image" width="actual_pixels" height="actual_pixels" alt="" />
and for css:
<link href="path_to_css" rel="stylesheet" type="text/css" media="my_choice"/>
Cheers,
Mike