I have never ever coded or written anything in my life. I am taking an Intro to Logic course which requires us to use a program called Logicola. THe professor swore that he couldnt get it to work on mac, even after following all of the instructions that were provided. Taking the challenge upon myself, I tried to get it to work and was successful. So why am I here? About 90% of my class uses Macs, and I want to create a simple way for them to install the app since I can almost guarantee that none of them even know what the Terminal App is. I think what I want to do is write a script, but I am not sure that is even the correct terminology. Here are the steps that I want to automate for them:
Open Terminal
Run: echo export PATH=/opt/local/bin:/opt/local/sbin:\$PATH$'\n'export MANPATH=/opt/local/man:\$MANPATH | sudo tee -a /etc/profile
Run: sudo port install wine-devel
Run: cd desktop/logicola
Run: wine LCSetup.exe
These steps are needed to install the application. Then I want to create a shortcut for them to launch the application without having to go into terminal every time. The command is as follows:
Open Terminal
Run: cd ~/.wine/drive_c/Program\ Files/LogiCola
Run: wine logicola.exe
When I use the word Run:, I mean I input that command line into my terminal. Like I said, I was able to do all this manually, but is there a way to automate it for my classmates? If someone can point me in the right direction as to what I am trying to do, that would be great. I think I lack the terminology to properly search. I dont know if I am creating a Shell Script, a Script, etc.
Edit: I am also using Automater in which I have it set to open terminal, but I don't know how to get it to execute the files that I have. I have made 4 .txt files of each line of code/command (again forgive my lack of knowing the correct terminology), which I am not sure is the right thing to do, but did the chmod a+x (file name) to make them executable. However I don't know how to get Automater to make them run.
I appreciate any help.
Thanks,
Walter
Open Terminal
Run: echo export PATH=/opt/local/bin:/opt/local/sbin:\$PATH$'\n'export MANPATH=/opt/local/man:\$MANPATH | sudo tee -a /etc/profile
Run: sudo port install wine-devel
Run: cd desktop/logicola
Run: wine LCSetup.exe
These steps are needed to install the application. Then I want to create a shortcut for them to launch the application without having to go into terminal every time. The command is as follows:
Open Terminal
Run: cd ~/.wine/drive_c/Program\ Files/LogiCola
Run: wine logicola.exe
When I use the word Run:, I mean I input that command line into my terminal. Like I said, I was able to do all this manually, but is there a way to automate it for my classmates? If someone can point me in the right direction as to what I am trying to do, that would be great. I think I lack the terminology to properly search. I dont know if I am creating a Shell Script, a Script, etc.
Edit: I am also using Automater in which I have it set to open terminal, but I don't know how to get it to execute the files that I have. I have made 4 .txt files of each line of code/command (again forgive my lack of knowing the correct terminology), which I am not sure is the right thing to do, but did the chmod a+x (file name) to make them executable. However I don't know how to get Automater to make them run.
I appreciate any help.
Thanks,
Walter