• 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 14:01:26 -0700


On Apr 19, 2006, at 1:08 PM, J. Stewart wrote:

Yes, don't use sudo in "do shell script", try this instead -

--> Script <--
set pathToFolder to quoted form of POSIX path of (choose folder)

set s to "find " & pathToFolder & " -user <adminuser> -exec chown <newname>:<newgroup> {} \\;"
do shell script s with administrator privileges
--> /Script <--


BTW, there is no reason for this to be contained within a Finder tell.


Thanks again, but still no love  :<(

The Password dialog comes up, which I don't want if possible. AND the owner and group appear to stay the same.


Still looking...

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


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

  • Prev by Date: Re: Verify if name contains an element of a list
  • Next by Date: Re: Apply User and Groups to Items in a Folder
  • 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