Re: Chown via shell script (OS X)
Re: Chown via shell script (OS X)
- Subject: Re: Chown via shell script (OS X)
- From: garbanzito <email@hidden>
- Date: Mon, 20 May 2002 16:04:35 -0600
at 2002 05 20, 16:12 -0500, they whom i call Chris Prew wrote:
I9m trying to run a script using chown as follows:
do shell script "sudo chown -R " & an_item & " " & the_dest_folder password
"1234" with administrator privileges
And it keeps telling me that the 3chown2 command doesn9t exist.
first, you don't need sudo if you are using "with
administrator privileges" -- it's the same thing!
second (and this comes up often, even earlier today), you
need to specify the full path to the chown utility since
your environment under "do shell script" has a very limited
PATH value. (full explanation in the archives.)
--
steve harley email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.