From c378f3bf324f616a52ae2176bc760eb3ff1f4563 Mon Sep 17 00:00:00 2001 From: Jeremiah Ticket Date: Wed, 16 Dec 2020 10:26:38 -0900 Subject: [PATCH] Remove the script with the compiled data, and adds the source instead. --- mac-launcher.applescript | 36 ++++++++++++++++++++++++++++++++++++ mac-launcher.scpt | Bin 8112 -> 0 bytes 2 files changed, 36 insertions(+) create mode 100644 mac-launcher.applescript delete mode 100644 mac-launcher.scpt diff --git a/mac-launcher.applescript b/mac-launcher.applescript new file mode 100644 index 0000000..e8573a9 --- /dev/null +++ b/mac-launcher.applescript @@ -0,0 +1,36 @@ +# Allows you to select a wine prefix to run with audiogame manager +#Get Working Directory +tell application "Finder" + set currentPath to container of (path to me) as alias +end tell +#format Converters +on convertPathToAlias(thePath) + tell application "System Events" + try + return (path of disk item (thePath as string)) as alias + on error + return (path of disk item (path of thePath) as string) as alias + end try + end tell +end convertPathToAlias + +on convertPathToPOSIXString(thePath) + tell application "System Events" + try + set thePath to path of disk item (thePath as string) + on error + set thePath to path of thePath + end try + end tell + return POSIX path of thePath +end convertPathToPOSIXString + +set currentPath to convertPathToPOSIXString(currentPath) +set folderPath to POSIX file "~/.local/wine/" +set folderPath to convertPathToAlias(folderPath) +set gameFolder to choose folder with prompt "Choose your game and press enter:" default location folderPath +set gameFolder to convertPathToPOSIXString(gameFolder) +set gameFolder to quoted form of gameFolder +set gameName to do shell script ("basename " & gameFolder) +do shell script "/usr/local/bin/bash -l " & currentPath & "audiogame-manager.sh -l " & gameName & " &> /dev/null &" +do shell script "say -v alex Launching " & gameName & ", please wait..." \ No newline at end of file diff --git a/mac-launcher.scpt b/mac-launcher.scpt deleted file mode 100644 index d8030ca75cbc5b6dcb88513e16abb0c70f05e6f5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8112 zcmeHMd3;nww*Kx-*zQdwX#|B##AY;^AqF~*KAp+0ORd;eY)lfU3CV0@egDUjO2asDJ0t+^BEGA%>wpv)Ozg!!+d@=w74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