basic programming(Scripting) ? help needed...

Discussion in 'Mac Programming' started by finnschi, Sep 28, 2009.

  1. finnschi macrumors 6502

    Joined:
    Dec 30, 2008
    Location:
    Hamburg, Germany
    #1
    So I have this programm called "synergy" basically a software KPM switch...

    its really awesome but the GUI version (synergyKM) doesen't work anymore.. so I used the basic ap that runs in the terminal.. its very easy

    Now my problem, how can I write a app that i can click on that does the following command=

    Code:
    /Users/finnschi/Desktop/synergy-1.3.1\ 2/synergys -f --config /Users/finnschi/Desktop/synergy-1.3.1\ 2/synergy.conf 
    and then if possible hides the terminal window ( the best would be to only have it running in the menubar.... but that not so important)

    in windows it was basically creating a txt file and rename it to .bat... than add some code to hide the app... please help me ^^ :D thank you
     
  2. mysterytramp macrumors 65816

    mysterytramp

    Joined:
    Jul 17, 2008
    Location:
    Maryland
    #2
    In AppleScript all you need to do is:

    Code:
    do shell script "/Users/finnschi/Desktop/synergy-1.3.1\\ 2/synergys -f --config /Users/finnschi/Desktop/synergy-1.3.1\\ 2/synergy.conf"
    You'll need to double the back slashes or AS will burp.

    mt
     

Share This Page