command file creation

Jump to First Reply
emeeme
Posted:
in Genius Bar edited January 2014
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?

Comments

  • Reply 1 of 2
    You could write an applescript to do it. Just open applescript and view the dictionary for the terminal. (if I understood you correctly it will work )
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 2
    thuh freakthuh freak Posts: 2,664member
    you could create a .command file. these files are shell scripts, that open up and execute in fresh terminal windows. the file would have exactly what you would normally do:



    Quote:

    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.
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.