Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. on run
  2.  
  3. --edit this to be the correct location and file to run (typically only edit after the "drive_c")
  4. set toRun to "$WINEPREFIX/drive_c/Program Files/MyProgram/MyProgramName.exe"
  5.  
  6. --edit winePrefix if you are not using the default prefix
  7. set winePrefix to "$HOME/.wine"
  8.  
  9. --edit wineLocation if your wine install is not the default location
  10. set wineLocation to "/usr/local/bin"
  11.  
  12. --edit dyldFallbackLibraryPath to your X11 lib folder, this one is set for XQuartz on 10.6+
  13. —set dyldFallbackLibraryPath to "/opt/X11/lib"
  14. -------------------------------------------------------
  15. --DO NOT EDIT ANYTHING BELOW THIS LINE
  16. -------------------------------------------------------
  17. set toRunPath to do shell script "WINEPREFIX=\"" & winePrefix & "\"; TEMPVAR=\"" & toRun & "\"; echo \"${TEMPVAR%/*}\""
  18. set toRunFile to do shell script "WINEPREFIX=\"" & winePrefix & "\"; TEMPVAR=\"" & toRun & "\"; TEMPVAR2=\"" & toRunPath & "\"; echo \"${TEMPVAR#$TEMPVAR2/}\""
  19. do shell script "PATH=\"" & wineLocation & ":$PATH\"; export WINEPREFIX=\"" & winePrefix & "\"; export DYLD_FALLBACK_LIBRARY_PATH=\"" & dyldFallbackLibraryPath & "\"; cd \"" & toRunPath & "\"; wine \"" & toRunFile & "\" > /dev/null 2>&1 &"
  20.  
  21. end run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement