On 5. Oct 2006, at 05:19, marios wrote:
The easiest is to use the regexp substitution capabilities of TextMate snippets.
So use something like ${TM_DROPPED_FILE/.*/|..+//g} — that ought to strip both the leading directories and the trailing extension.
I still couldn't get the above going, I tried to escape also the above variable and if I do echo the above snippet, as a drag command causes a crash.
Please paste the code you tried, and certainly also the one which lead to a crash.