Created
January 28, 2013 16:43
-
-
Save vtsatskin/4657074 to your computer and use it in GitHub Desktop.
A Mac OS X launcher for the PokeMMO. 1) Open AppleScript Editor, paste the code
2) Export as an Application, and name it "PokeMMO.app" (won't run otherwise)
3) Save it in the root folder of the client, same location as the `.sh` and `.exe`
This file contains 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
set mypath to (path to me) as string | |
tell application "Finder" to set theFilename to name of file mypath | |
set theName to characters 1 thru ((offset of "." in theFilename) - 1) of theFilename as string | |
do shell script "cd " & POSIX path of mypath & "/.. && sh " & theName & ".sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment