Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

help needer

macrumors newbie
Original poster
Apr 20, 2012
2
0
Hi
I'am looking for help to write a script.
I use the "Wine" program to run the forex trading platform Metatrader 4 on my iMac.
I normally type the following info into the Terminal.

cd~/.wine/drive_c/Program\ Files/
return
ls
return
cd Metatrader\ -\Pepperstone/
return
wine terminal.exe
return

What I would like to achieve is to have the script in my desktop so I can use
it like an icon to launch the program.

Thanks in advance for any help.
 
Save the script as application

Code:
tell application "Terminal"
	activate
	set Metatrader_command to "cd ~/.wine/drive_c/Program\\ Files/Metatrader\\ -\\ Pepperstone;wine terminal.exe"
	do script Metatrader_command in window 1
end tell

Or :

Code:
set Metatrader_command to "cd ~/.wine/drive_c/Program\\ Files/Metatrader\\ -\\ Pepperstone;wine terminal.exe"
do shell script Metatrader_command
 
A huge thank you

A huge thank you to Kryten2 for taking the time to assist me with your imput.
I have been able to achieve my goals thanks to you.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.