• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I add a perl script to a project?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I add a perl script to a project?


  • Subject: Re: How do I add a perl script to a project?
  • From: Michael Shantzis <email@hidden>
  • Date: Wed, 09 Jul 2003 09:41:41 -0700

Yes, this was what I was planning on doing. The problem ended up being
that Xcode was not allowing me to add a file with a ".pl" prefix. Once
I changed it to a ".perl" prefix, all was fine. So programmers beware!!!

m


On Tuesday, July 8, 2003, at 9:26 PM, John Lombardo wrote:

If you're going to be distributing the script with your app, put it in your
app's resources folder. You can access it like this:

NSString *toolPath;
NSBundle *thisBundle = [NSBundle bundleForClass:[self class]];
if (toolPath = [thisBundle pathForResource:@"myPerlTool" ofType:nil])
{...}

You should be able to execute the script using a NSTask. CocoaDevCentral has
some good tutorials on how to do this with pipes and all.

My very amateur opinion says you should check this out:
http://camelbones.sourceforge.net/

CamelBones is an Objective-C/Perl bridge framework. From the website:

"CamelBones is a framework that allows many types of Cocoa programs to be
written entirely in Perl. It also provides a high-level object-oriented
wrapper around an embedded Perl interpreter, so that Cocoa programs written
in Objective-C can easily make use of code and libraries written in Perl."

Also, if you're interested in Perl, there's an interesting post from an
Apple engineer who created PerlObjCBridge:
http://archive.develooper.com/email@hidden/msg00896.html

Cheers,
john

On 9/7/03 11:38 AM, "Michael Shantzis" <email@hidden> wrote:

Hello,
I'd like to have a perl script be part of my project. It will
function as a task to which I will attach pipes so I can
communicate with it. I've attempted to just add it to
my project (using Xcode) and the program just blew crashed
on me.

I'm guessing there's a way of doing this of which I'm not aware.

thanks,
m
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How do I add a perl script to a project?
      • From: Finlay Dobbie <email@hidden>
    • Re: How do I add a perl script to a project?
      • From: zauhar <email@hidden>
References: 
 >Re: How do I add a perl script to a project? (From: John Lombardo <email@hidden>)

  • Prev by Date: Re: awakeFromNib and windowWillLoad : basic question
  • Next by Date: Re: Get click on table column header
  • Previous by thread: Re: How do I add a perl script to a project?
  • Next by thread: Re: How do I add a perl script to a project?
  • Index(es):
    • Date
    • Thread