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

finnschi

macrumors 6502
Original poster
Dec 30, 2008
460
0
Hamburg, Germany
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
 
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.