dont know if i am doing anything wrong or it is because off the wine application i am using.
iv'e got a wine app in my /Applications folder, installed as a drag and drop ap
so my winelocation is "/Applications/wine" ?
The Prefix i am using is one i made myself, so i easily can share it with some classmates who also needs it. and that Prefix is located at /Users/Nicklas/Documents and is called FEM-Design, so the wine Prefix must be, "$/Users/Nicklas/Documents/FEM-Design" ?
--edit dyldFallbackLibraryPath to your X11 lib folder, this one is set for XQuartz on 10.6+, this one i am not quiet sure off, i once had XQuartz on my mac but deleted is as i didn't have any need for it, but i got the folder path called "/opt/X11/lib" as its suggest but is there any specific files that need to be there ?
so this i what i end up with:
Code: Select all
on run
--edit this to be the correct location and file to run (typically only edit after the "drive_c")
set toRun to "$WINEPREFIX/drive_c/Program Files/STRUSOFT/FEM-Design 12.0/fd3dstruct.exe"
--edit winePrefix if you are not using the default prefix
set winePrefix to "$/Users/Nicklas/Documents/FEM-Design"
--edit wineLocation if your wine install is not the default location
set wineLocation to "/Applications/wine"
--edit dyldFallbackLibraryPath to your X11 lib folder, this one is set for XQuartz on 10.6+
set dyldFallbackLibraryPath to "/opt/X11/lib"
-------------------------------------------------------
--DO NOT EDIT ANYTHING BELOW THIS LINE
-------------------------------------------------------
set toRunPath to do shell script "WINEPREFIX=\"" & winePrefix & "\"; TEMPVAR=\"" & toRun & "\"; echo \"${TEMPVAR%/*}\""
set toRunFile to do shell script "WINEPREFIX=\"" & winePrefix & "\"; 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
Which does absolutely nothing when i run it

. hope my explanation can help you help me with this or else i will try and install wine in the way suggesting on this link:
http://www.davidbaumgold.com/tutorials/ ... #dock-icon as you posted (: