in rox-filer you can "send" files to bash scripts by right clicking on them and selecting the script. for example:
mogrify -format jpg $1
i use these scripts all the time and they are really handy but they are limited.
$1 uses the whole path and filename so it is almost impossible to do simple renaming or copy a file to a server without it being copied to /targetdir/fullpath/filename, for example.
I am trying to work out how to get the filename into my scripts - with the full path - and then chop it up into path, filename, extention. i read about word modifiers in bash e.g. !$:h - which works great on the command line but not in scripts - any ideas?