Skip to content

Instantly share code, notes, and snippets.

@zaxebo1
Forked from jolros/spw
Created September 16, 2017 07:20
Show Gist options
  • Save zaxebo1/10afeb084c2c7a49712247ccd8f130f2 to your computer and use it in GitHub Desktop.
Save zaxebo1/10afeb084c2c7a49712247ccd8f130f2 to your computer and use it in GitHub Desktop.
Shell script to open SigmaPlot 12 using wine by itself or with a file passed in as an argument. See: http://blog.jolros.com/post/71709752383/running-sigmaplot-as-a-mac-os-x-application-using-wine
#!/usr/bin/env bash
export WINEDEBUG=-all
WINE=/usr/local/bin/wine
SPW=$HOME/.wine/drive_c/Program\ Files/SigmaPlot/SPW12/Spw.exe
if [ -z "$1" ]; then
"$WINE" "$SPW" >& /dev/null &
else
"$WINE" "$SPW" "Z:$1" >& /dev/null &
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment