| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Sep 10, 2008
Posts: 61
![]() |
I have started learning Xcode as of the 3.0 release. My C coding experience is years old but it is coming back. I just need to tack on the Objective-c part. Time is all I need.
But, I have years worth of scripts (mostly perl) that I definitely don't want to rewrite into obj-c. I can easily call a Obj-c executable from Perl, but so far I haven't managed to call a perl script from inside of Obj-c. I suspect that I am not seeing the forest for the trees and the method is so simple that I am overlooking it. Note: I am not trying to integrate Perl inside of Xcode as in using Camelbones or suchlike. Just a simple call to an external program and return. Anybody got an example? Konan |
| QUOTE Thanks | |
![]() Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
|
system( "cat /dev/null > /tmp/mymd5s" );
or system( [myNSStringCommand UTF8String] ); Of course that won't return any values except the status, I think. You'd have to read the output from a file. You might want to look into NSTask and NSPipe. CameraTime - Time lapse photography for novice and advanced users. When asking questions, post the version of your software. You'll receive better answers. Please post your results to the thread as it is good feedback.
|
| QUOTE Thanks | |
![]() Member Since: Sep 10, 2008
Posts: 61
![]() |
Quote:
Anyway, the scripts just grab data out of mysql then put it back so they don't have to return values to the caller. Yet Thanks Konan |
|||||
| QUOTE Thanks | ||||||
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| need help to amend a script so that it only runs if iTunes is running | nick_harambee | OS X - Operating System | 1 | 07-20-2009 11:15 AM |
| Script for adding users | i_eat_short_ppl | OS X - Operating System | 0 | 06-04-2009 06:01 PM |
| How to use QuickSilver to run my script | yinglcs | OS X - Operating System | 0 | 02-09-2009 08:54 PM |
| Really Need Help Regarding MAC Script | MACSCRIPT | OS X - Apps and Games | 2 | 08-13-2008 07:15 AM |
| apple script to greet me off stand by | jakeroberts | OS X - Development and Darwin | 0 | 04-29-2007 12:34 PM |
All times are GMT -4. The time now is 04:44 AM.
Powered by vBulletin