Hi,
sometimes I test quicly my html files on the Desktop and I use this in bundle:
open "http://localhost/desktop%24%7BTM_FILEPATH#%24HOME/Desktop%7D"
(after to set for this one the httpd.conf file)
ok, but if an html page has spaces in the filename (I know this is not correct) the above command doesn't work.
Is it normal? How to correct it, please?
thanks and regards
Salvo
On 13/12/2005, at 15:37, salvo wrote:
ok, but if an html page has spaces in the filename (I know this is not correct) the above command doesn't work.
Is it normal? How to correct it, please?
Spaces needs to be percent-escaped. You can change the command to:
file=${TM_FILEPATH#$HOME/Desktop} open "http://localhost/desktop%24%7Bfile// /%20}"
First we strip the $HOME/Desktop prefix (store the result in $file), then we do a global substitution when using $file.
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%24%7Bfile// /%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