• 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: Apply User and Groups to Items in a Folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apply User and Groups to Items in a Folder


  • Subject: Re: Apply User and Groups to Items in a Folder
  • From: Todd Geist <email@hidden>
  • Date: Wed, 19 Apr 2006 11:15:48 -0700


On Apr 19, 2006, at 10:33 AM, Gnarlodious wrote:

sudo find pathToFolder -user username -exec chown username:groupname {} \;

For an Applescript the backslash needs to be double-escaped.

-- Gnarlie

Thanks!

But I don't think I get this yet.

I tried

tell application "Finder"

set pathToFolder to choose folder

set s to "sudo find " & pathToFolder & " -user <adminUserName> -exec chown <newOwner>:<newGroup> {} \\;"
do shell script s

end tell


-->  Finder Got an Error  Password

<adminUserName> = an admin user on the machine
<newOwner> = the new owner
<newGroup> = the new group


Any ideas?

TIA

Todd

--

Todd Geist
______________________________________
g e i s t   i n t e r a c t i v e

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Apply User and Groups to Items in a Folder
      • From: Gnarlodious <email@hidden>
    • Re: Apply User and Groups to Items in a Folder
      • From: "J. Stewart" <email@hidden>
References: 
 >Re: Apply User and Groups to Items in a Folder (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Can't get AMDescription working
  • Next by Date: Verify if name contains an element of a list
  • Previous by thread: Re: Apply User and Groups to Items in a Folder
  • Next by thread: Re: Apply User and Groups to Items in a Folder
  • Index(es):
    • Date
    • Thread