Re: Integrating Unix scripting in Cocoa app
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