Skip to content

Instantly share code, notes, and snippets.

@vtsatskin
Created January 28, 2013 16:43
Show Gist options
  • Save vtsatskin/4657074 to your computer and use it in GitHub Desktop.
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`
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