• 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: AS to Change Owner of files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: AS to Change Owner of files


  • Subject: RE: AS to Change Owner of files
  • From: Henrik Boes <email@hidden>
  • Date: Mon, 20 Jan 2003 13:58:22 -0700

Here's a little script I adapted from an already compiled freebie script (uptowner), using Apple's Folder Actions to link it to a folder ...

property adminPass : "[password]"
on adding folder items to this_folder after receiving added_items
do shell script "sudo /usr/sbin/chown -R [username] [path]" & ";" password adminPass with administrator privileges
end adding folder items to

Of course, as someone else mentioned, there is the security issue of making the admin password plain to see.

Another solution I finally implemented was to add the admin user account on the computer to the network user group.

Henrik

On Sunday, January 19, 2003, at 11:00 PM, email@hidden wrote:

RE: AS to Change Owner of files
_______________________________________________
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.

  • Follow-Ups:
    • Storing passwords in scripts
      • From: Jon Pugh <email@hidden>
  • Prev by Date: Re: GUI Scripting
  • Next by Date: Re: GUI Scripting
  • Previous by thread: RE: AS to Change Owner of files
  • Next by thread: Storing passwords in scripts
  • Index(es):
    • Date
    • Thread