Last active
December 15, 2015 23:09
-
-
Save mattintosh4/5338378 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Winetricks.app - Winetricks GUI | |
-- Created by mattintosh4 on 2013-04-09. | |
-- Copyright (c) 2013 mattintosh4, https://github.com/mattintosh4/iNSTANTWiNE | |
-- | |
-- user edit area | |
property PREFIX : "/usr/local/bin" | |
property WINEPREFIX : "$HOME/.wine" | |
-- do not edit below this line | |
property winetricks : "export PATH=" & PREFIX & ":$PATH;export WINEPREFIX=" & WINEPREFIX & ";winetricks " | |
on run | |
activate | |
set cmd to (choose from list (every paragraph of (do shell script winetricks & "list;:")) with title "Winetricks") as text | |
if cmd is "false" then error number -128 | |
set tmp to AppleScript's text item delimiters | |
set AppleScript's text item delimiters to " " | |
set cmd to first text item of ((choose from list (every paragraph of (do shell script winetricks & cmd & " list;:")) with title cmd) as text) | |
set AppleScript's text item delimiters to tmp | |
if not cmd is "false" then | |
try | |
do shell script "xterm -e bash -c '" & winetricks & cmd & ";echo \"Winetricks has finished (status: $?). Press to return key to exit.\";read'" | |
end try | |
end if | |
run | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment