[TxMt] open in Desktop and html files with spaces

salvo salvo at scicli.com
Tue Dec 13 15:22:59 UTC 2005


Il giorno 13/dic/05, alle ore 16:18, Allan Odgaard ha scritto:

> Spaces needs to be percent-escaped. You can change the command to:
>
> file=${TM_FILEPATH#$HOME/Desktop}
> open "http://localhost/desktop${file// /%20}"
>
> First we strip the $HOME/Desktop prefix (store the result in  
> $file), then we do a global substitution when using $file.

many thanks, Allan!

in this manner it's ok.

best regards

Salvo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20051213/1a1d1977/attachment.html>


More information about the textmate mailing list