Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Integrating Unix scripting in Cocoa app




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.