• 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: Chown via shell script (OS X)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Chown via shell script (OS X) (From: Chris Prew <email@hidden>)

  • Prev by Date: Re: Linked lists (was osascript - path to me)
  • Next by Date: Re: Importing Sigs to Mail.app
  • Previous by thread: Chown via shell script (OS X)
  • Next by thread: No Folder Action AppleScripts in OS X???
  • Index(es):
    • Date
    • Thread