[Wine] Re: How to make icon to command on mac?

Bazilisk wineforum-user at winehq.org
Thu Jan 14 11:47:20 CST 2010


I usual start soft in Terminal as:

Code:
wine ~/desktop/bullion/bulliator.exe



I made script in AppleScript:on run

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


But its not working
When I make 
Code:
which wine


I have:

Code:
/opt/local/bin/wine



Where is my mistake?







More information about the wine-users mailing list