On Jun 8, 2010, at 1:16 AM, Stephen J. Butler wrote:

> On Tue, Jun 8, 2010 at 1:04 AM, Graham Cox <graham....@bigpond.com> wrote:
>> I need to be able to make a .gzip file from a FOLDER on my hard disk 
>> programatically.
> 
> a) You can't gzip a folder. That's why people tar the folders, then
> gzip the tar file (or just use the 'z' option in tar).
> 
> b) In a working OS X system, the unix executables will always be where
> they're supposed to be (ie: /bin, /sbin, /usr/bin, /usr/sbin, etc).

They can move from one version of the OS to another.
Not likely, but can happen. (10.5 and up there is a fairly unique Ruby 
installation unlike previous)
If you *really* want, you could run a prior NSTask on Unix command line tool

which

and that will let you locate the actual path of the command line tool you want 
to use. (pass that path to your next NSTask)

See 
man which 
for usage.

> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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/jjoyce%40apple.com
> 
> This email sent to jjo...@apple.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to