Hi!
I am an old user of hfs software!I use it on ubuntu linux with wine.
My question is, there is a way to pass arguments to hfs on linux?
for example, in windows,from the prompt the command:
hfs file1 file2
works, on linux, with wine, I do not manage to make it works.
on bash, I create a simple script:
#!/bin/bash
wine /home/piero/programmi/hfs/hfs.exe "$@"
but do not works, then I modified the script, passing as arguments, the full path of a file,keep in mind that wine assigns "z:/" letters to my home partition.
#!/bin/bash
function abspath() {
DIR=`dirname "$1"`
NAM=`basename "$1" | sed "s: :\ :g"`
FDIR=`cd "$DIR"; pwd`
echo $FDIR/$NAM
}
finalString="";
for word in $@;
do
finalString=$finalString" z:"$(abspath "$word");
done
wine /home/piero/programmi/hfs/hfs.exe "$finalString"
so the script will pass on hfs a line similar to this:
wine /home/piero/programmi/hfs/hfs.exe "z:/home/piero/Desktop/file1 z:/home/piero/Desktop/file2"
but it do not works...
some suggestions?