From tmtxpstuff@consking.com Sun Oct 8 17:50:07 2006 From: marios To: textmate@lists.macromates.com Subject: Re: [TxMt] drag commands Date: Sun, 08 Oct 2006 20:49:46 +0300 Message-ID: <45293A3A.7010702@consking.com> In-Reply-To: <4524FCF5.9060403@consking.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5487801090464276648==" --===============5487801090464276648== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit I finally could figure out how to do this, without using the Ruby code, thanks to Allan's excellent documentations.: base=${TM_DROPPED_FILE%.*} title="${base##*/}" echo -n "\${3:$title}" However, in order to work this correctly, the file must be dragged slowly. If I drag the file to fast, then the regions for the tab stop variables 1, 2 and 3 will loose track and cease to function correctly, since they are highlighted at unproper positions. The command is attached. regards, marios --===============5487801090464276648== Content-Type: application/zip Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ZipDragcommand.tmDragCommand.zip" MIME-Version: 1.0 UEsDBBQACAAIABWlSDUAAAAAAAAAAAAAAAAeABAAWmlwIERyYWcgY29tbWFuZC50bURyYWdDb21t YW5kVVgMAEk4KUUZOClF9QH1AW1SXW/aMBR9Xn6F57I+VEoMAcpHA1WCYwkpHREND5uQUJoYsJbY UeIMOsR/nwODibQvkXN87jn3Xh/reZ8m4DfNCyb4CLaMJgSURyJmfDOCi4Doffg81qyveDYJfvgu yBJWSOAvHG86AVBHyM6yhIKJSLNS0hwhHGDge9PXACgxhNzvEMCtlNkQod1uZ4QV3YhEWhEL5Oci o7l895SqrgqMWMZQ+Z1tbvpSaMwiOda+WL/o+/iNrkVO5yXnqlVln4Y8tlB1owiFzBU65iKz0L/z pazkcUIXiymuk12C22Ybm3p3QgZ6x2019YHdJ+pDTHPQcZwWbtbVos9938KCjhqH4GWF5zPfd/GK TD33m/Fw1CSTCR3BxqHi3N09oCPUaLQVQOcA3ifyKQTbnK5Hy8vSGkpl7r7MAne1mHtozRK6isWO JyKM0bJxaA1PEIuPSwjO6kuocHPYOP0p+H4jnxTSviCVDQorFGr1ieI83GxoTJSmu5eUV/svrvOF eR5Wh+ukf9jNhtGFcNJiXGWivpuCJjSSSrXuzMOU1sk/WQaw6ghcF31bI0r5iQXjhcqUXbxylmVU 1ouKSGWuXiPpXhpbmSaG3H8ITVmyD29sE0Ic+9HRe91uW++YtqPbPRvrA0Jc4jr4sdfv/9ex0Dm7 Fjole6z9BVBLBwj1iD4e9QEAAHkDAABQSwECFQMUAAgACAAVpUg19Yg+HvUBAAB5AwAAHgAMAAAA AAAAAABApIEAAAAAWmlwIERyYWcgY29tbWFuZC50bURyYWdDb21tYW5kVVgIAEk4KUUZOClFUEsF BgAAAAABAAEAWAAAAFECAAAAAA== --===============5487801090464276648==--