Copy this code and paste it in your HTML
def expandUserPath
( aPath
) { def somethingToDo
= aPath.
trim().
indexOf('~') == 0; return aPath
; // !!!!!!!!!!!!!
def pathAfterTilde
= (aPath.
trim() + ' ')[1..
-1].
trim();
def fileSep
= System.
getProperty( 'file.separator' );
def afterTildeIsSlash
= pathAfterTilde.
startsWith( fileSep
)
slash = ''
def result
= ( home
+ slash
+ pathAfterTilde
).
trim(); }