CaptainKarrow wrote: > > My question is, how do I fix so that I don't have to use the terminal to start an .exe program? Just enter a script in Applescript, save it as an application and start it through that? > > I've googled and found some scripts but none of them works for me. I've tried these (with a modification to suit my .exe location and .wine location): > > > Code: > --edit this to be the correct location and file to run (typically only edit after the "drive_c") > set toRun to "~/desktop/bullion/bulliator.exe" > --edit winePrefix if you are not using the default prefix > set winePrefix to "~/.wine" > --edit wineLocation if your wine install is not the default location > set wineLocation to "/opt/local/bin" > --edit dyldFallbackLibraryPath if your using X11.app that is not the default Apple one > set dyldFallbackLibraryPath to "/usr/X11/lib" > ------------------------------------------------------- > --DO NOT EDIT ANYTHING BELOW THIS LINE > ------------------------------------------------------- > set toRunPath to do shell script "TEMPVAR=\"" & toRun & "\"; echo \"${TEMPVAR%/*}\"" > set toRunFile to do shell script "TEMPVAR=\"" & toRun & "\"; TEMPVAR2=\"" & toRunPath & "\"; echo \"${TEMPVAR#$TEMPVAR2/}\"" > do shell script "PATH=\"" & wineLocation & ":$PATH\"; > export WINEPREFIX=\"" & winePrefix & "\"; > export DYLD_FALLBACK_LIBRARY_PATH=\"" & dyldFallbackLibraryPath & "\"; > cd \"" & toRunPath & "\"; > wine \"" & toRunFile & "\" > /dev/null 2>&1 &" > end run > > > Clicking this "app" doesn't do anything. > That works fine if your using real Wine... are you using real normal Wine, or are you using some 3rd party tool like Wine.app from WineBottler? If oyu install normal Wine from source or use Macports to do it for you, this type of app will work fine... I wrote that script and tested it a lot :-P CaptainKarrow wrote: > > > Code: > do shell script "/Applications/Wine.app/Contents/MacOS/startwine /Users/myuser/Programs/ASP32/Asp32.exe" > > > Clicking this "app" starts X11 and then a small popup window with a yellow warning sign (with a "!") comes up. No text, just the warning sign. > I'm guessing fro this your using WineBottler's Wine.app and not normal Wine... that one seemed like it worked for you, but the asp32.exe thing is having an error... or doesn't exist? I dunno.. WineBottler (and its related Wine.app) are 3rd party programs not supported here. CaptainKarrow wrote: > > > Code: > tell application "Terminal" > do script "/opt/local/bin/wine ~/.wine/drive_c/Program\\ Files/$PATH_TO_PROGRAM.exe" > end tell > > > Clicking this "app" starts X11 and then a small popup window with a yellow warning sign (with a "!") comes up. No text, just the warning sign. yes that would, because by default the variable $PATH_TO_PROGRAM is nothing, so thats just like trying to run ".exe" with no file name.. and it errors... unless your setting that variable first, and its ASP as above and is having a problem. This one will only work if you have Win installed with Macports though, as its looking in /opt/local where Macports resides. That script will also mess up if the exe name has any spaces or reserved characters in it. It basically comes down to ... how are you running your Wine? if your using a 3rd party tool... such as Crossover, or Wineskin, or WineBottler, etc... there is no need to make such a shortcut, as the tools handle GUI stuff themselves for you... if your using normal Wine installed by source.. or Macports, the first script should work fine, but you may be getting it edited wrong... did you build WIne yourself, or use Macports?