Please help me with creating a shortcut.
I have a script to run the program Radmin:
on run
set toRun to "$WINEPREFIX/drive_c/Program Files (x86)/Radmin Viewer 3/Radmin.exe"
set winePrefix to "/Users/user/.wine"
set wineLocation to "/Applications/Wine Stable.app/Contents/Resources/wine/bin"
set dyldFallbackLibraryPath to "/usr/X11/lib"
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
it works, but I need to run a program with arguments:
/connect:ip:port /updates:20 /fullstretch
how can I do this?
Thanks for the help.