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