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

Re: Integrating Unix scripting in Cocoa app


  • Subject: Re: Integrating Unix scripting in Cocoa app
  • From: Nir Soffer <email@hidden>
  • Date: Fri, 10 Aug 2007 00:03:21 +0300


On Aug 9, 2007, at 11:54, Ron Fleckner wrote:

You can combine your easy to use way, #! line and file extension to make everyone happy:

1. If the script has app meta data saved in your app - use it

meta-data-app path/to/script

What do you mean by 'meta-data' in this case? (Remember, I'm not lazy, just...)



Imagine that you provide an "Add Script" menu item. When selected, you provide a simple editor, with a popup menu for script type (python, perl, bash, applescript...). The user type the script and close the window. You store the text and the type. When running, you load the text and run it with the selected app.


That simple editor may be too simple for general scripting, but maybe just enough for simple scripts. The user does not have to deal with file names, extensions, executable bits etc.


Best Regards,

Nir Soffer

_______________________________________________

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: Ron Fleckner <email@hidden>
References: 
 >Re: Integrating Unix scripting in Cocoa app (From: Kevin Kuehl <email@hidden>)
 >Re: Integrating Unix scripting in Cocoa app (From: Nir Soffer <email@hidden>)
 >Re: Integrating Unix scripting in Cocoa app (From: Ron Fleckner <email@hidden>)

  • Prev by Date: Re: Memory Management and NSView
  • Next by Date: Re: Memory Management and NSView
  • Previous by thread: Re: Integrating Unix scripting in Cocoa app
  • Next by thread: Re: Integrating Unix scripting in Cocoa app
  • Index(es):
    • Date
    • Thread