Skip to content

Instantly share code, notes, and snippets.

@jolros
Created December 31, 2013 03:08
Show Gist options
  • Save jolros/8191929 to your computer and use it in GitHub Desktop.
Save jolros/8191929 to your computer and use it in GitHub Desktop.
AppleScript that can be used to launch SigmaPlot 12 using my spw script by itself or with a specified file(s) through the Finder. See: http://blog.jolros.com/post/71709752383/running-sigmaplot-as-a-mac-os-x-application-using-wine
on open theFiles
set arguments to ""
repeat with anItem in theFiles
set arguments to arguments & space & (quoted form of POSIX path of anItem)
end repeat
do shell script "/usr/local/bin/spw" & arguments
end open
on run
do shell script "/usr/local/bin/spw"
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment