Re: Winepath on Mac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear doh123:

Thank you very much for the script sample.  I have written the simple script that you described:

---------------
#!/bin/bash
# Convert from WINE to native Mac UNIX filepath
TEMPVAR=$(/Applications/Firefly/WINE/bin/winepath "$@")
UNIXFILEPATH=$(echo ${TEMPVAR#${TEMPVAR%:*}:})
# Test if UNIXFILEPATH was properly assigned
echo "$UNIXFILEPATH"
exit 0
---------------

Unfortunately, I cannot get it to work properly without using the single quotes when calling it.  For example:

winepathOSX Z:\Applications\Firefly\BENCH1.out

returns:

/Applications/Firefly/RUN-FIREFLY-JOBS/ApplicationsFireflyBENCH1.out

whereas

winepathOSX 'Z:\Applications\Firefly\BENCH1.out'

returns:

/Applications/Firefly/BENCH1.out

Obviously the latter is what I want, but the file parameter that I will be passed will look like the former (without the single quotes on either side).  For some reason I could not modify your script to make it work without having the single quotes on either side of the parameter that is to be passed to it (this is coming from the Windows program running through WINE so I cannot change this).  Is there a way to do this in BASH?  I will then use the UNIXFILEPATH variable to call various Mac native programs for a variety of purposes.

I still think that this should all be done by winepath automatically from calling the -u switch (or at least designate a new switch for what seems to be the normal intuitive UNIX path).

Thank you kindly for all of the assistance.

Cheers,

Thomas






[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux