Skip to content

Instantly share code, notes, and snippets.

@jolros
Created December 31, 2013 02:28
Show Gist options
  • Save jolros/8191579 to your computer and use it in GitHub Desktop.
Save jolros/8191579 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