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

ZildjianKX

macrumors 68000
Original poster
May 18, 2003
1,610
0
Hi. I was wondering if anyone can point me in the right direction for a guide or any other sources that I could use to make a GUI to interact with an existing command line program. The catch is the program is closed source, so the GUI would literally be feeding it commands.

I'm pretty sure this can be done, since programs like DVD2one use mkisofs, which is a command line.

Any advise would be greatly appreciated.

Thanks.
 
Andrew Stone wrote an article precisely for this kind of thing in MacTech magazine a year or so ago. You should check their archives.

[EDIT]The issue was May 2002[/EDIT]
 
there's an example of how to do this in apple's developer documentation. there's also a full code example on the dev site of how to make a gui wrapper for mpg123. applescript studio can make wrappers as well, if you don't feel like coding in cocoa, but the cocoa wrapper really isn't that hard to do if you follow the docs.
 
Originally posted by FattyMembrane
there's an example of how to do this in apple's developer documentation. there's also a full code example on the dev site of how to make a gui wrapper for mpg123. applescript studio can make wrappers as well, if you don't feel like coding in cocoa, but the cocoa wrapper really isn't that hard to do if you follow the docs.

GUI wrapping, that's what its called! Thanks.

http://developer.apple.com/document...ix/unix_environments/chapter_7_section_7.html
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.