command file creation
hi... i just downloades dMSN Messenger, from www.dmsn.nl, it is a msn messenger java client... but for running it on os x you need to insert the command:
cd /applications/dmsn\\ messenger
java -classpath lib/dMSN.jar:lib/Encryption.jar:lib/Layout.jar:lib/Skins.jar:lib/XML.jar:lib/TrayIcon.jar:lib/Pop3.jar com.Danny.Net.MSN.Main -messenger
is there anyway to creat a terminal script that does this automatically?
cd /applications/dmsn\\ messenger
java -classpath lib/dMSN.jar:lib/Encryption.jar:lib/Layout.jar:lib/Skins.jar:lib/XML.jar:lib/TrayIcon.jar:lib/Pop3.jar com.Danny.Net.MSN.Main -messenger
is there anyway to creat a terminal script that does this automatically?
Comments
cd /applications/dmsn\\ messenger
java -classpath lib/dMSN.jar:lib/Encryption.jar:lib/Layout.jar:lib/Skins.jar:lib/XML.jar:lib/TrayIcon.jar:lib/Pop3.jar com.Danny.Net.MSN.Main -messenger
name the file "~/MyMessenger.command" (or anything with .command on the end), then in terminal change the permissions to make it executable. like this:
chmod +x ~/MyMessenger.command
now 2xclick that file whenever you want to open messenger. note, it will open a new terminal window, whichh can be annoying if you aren't used to keeping terminal open.