Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 28, 2009, 12:12 PM   #1
finnschi
macrumors 6502
 
Join Date: Dec 2008
Location: Hamburg, Germany
Send a message via AIM to finnschi Send a message via MSN to finnschi Send a message via Skype™ to finnschi
basic programming(Scripting) ? help needed...

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 ^^ thank you
__________________
Macbook Unibody 2,4Ghz 2Gbram 250Gb HD
Powermac G4
iPhone 3G 16Gb
finnschi is offline   0 Reply With Quote
Old Sep 28, 2009, 03:22 PM   #2
mysterytramp
macrumors 65816
 
mysterytramp's Avatar
 
Join Date: Jul 2008
Location: Maryland
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
__________________
What looks large from a distance, close up ain't never that big.
mysterytramp is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Need help with a simple app - Creating a basic tip/help guide w...b iPhone/iPad Programming 0 Jun 14, 2010 08:45 PM
basic php help needed tominated Web Design and Development 7 Jun 23, 2008 09:56 PM
Need some basic noob help with mac :) truz Mac Basics and Help 13 Jan 22, 2006 11:42 PM
Mac basics help needed bob rose Mac Basics and Help 4 Oct 6, 2005 12:22 PM
Basic Flash help needed. newb crazydreaming Mac Applications and Mac App Store 7 Apr 26, 2005 02:09 PM


All times are GMT -5. The time now is 10:55 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC