/def -mregexp -t'^#\$#url:(.*)$' get_url = \ /let path=%P1 %; \ /echo URL: "%path" %;\ /loadimage %path ;; %1 is the full path, %2 is just the base name /def loadimage = \ /sh netscape -remote 'openURL(%1)' &