Convert local file spec to URL spec
Posted: 03 Apr 2008 12:38
I use this script to easily generate valid web references (URLs) to my www.xyplorer.com web project from my local machine.
I assigned Ctrl+U to it (via UDC Run Script) so it's just a key combo from D:\www\xyplorer.com\code\download\tipoftheday.zip to http://www.xyplorer.com/download/tipoftheday.zip. 
Code: Select all
// copy current item as xyplorer.com URL
replace $p, <curitem>, "\", "/";
replace $p, $p, "D:/www/xyplorer.com/code", "http://www.xyplorer.com";
copytext $p;