• 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
Integrating Unix scripting in Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Integrating Unix scripting in Cocoa app


  • Subject: Integrating Unix scripting in Cocoa app
  • From: Ron Fleckner <email@hidden>
  • Date: Tue, 7 Aug 2007 20:38:38 +1000

Hi,

My app has a Scripts menu from which the user can run Ruby, Python, Perl and AppleScripts. I want to be able to support shell and other script types and to do so, I need to get the shebang line from the script file and pass that to NSTask. At the moment, I'm assuming that the shebang line is the FIRST line of the script which makes it easy to find.

My question: Do people ever write shell scripts without a shebang line or where the shebang line is NOT the first line of the script?

TIA,

Ron
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Integrating Unix scripting in Cocoa app
      • From: Kevin Kuehl <email@hidden>
    • Re: Integrating Unix scripting in Cocoa app
      • From: Sherm Pendley <email@hidden>
    • Re: Integrating Unix scripting in Cocoa app
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: drawing a simple string with NSFont
  • Next by Date: Re: Integrating Unix scripting in Cocoa app
  • Previous by thread: Re: drawing a simple string with NSFont
  • Next by thread: Re: Integrating Unix scripting in Cocoa app
  • Index(es):
    • Date
    • Thread