RE: Ownership and permissions
RE: Ownership and permissions
- Subject: RE: Ownership and permissions
- From: "Reese, Steve" <email@hidden>
- Date: Mon, 15 Dec 2003 06:08:21 -0800
- Thread-topic: Ownership and permissions
set passwd to "mypassword"
set filename to "filename.txt"
set owner to "user"
set group to "group"
do shell script "chmod 755 " & filename password passwd with administrator privileges
do shell script "chown " & owner & ":" & group & " " & filename password passwd with administrator privileges
I use system.osax (
http://www.bekkoame.ne.jp/~iimori/sw/systemOSAX.html)
to askpassword and hide it as it is being typed rather than embed the password in the script.
stevan
-----Original Message-----
From: Peter Mathiessen [
mailto:email@hidden]
Sent: Mon 12/15/2003 1:22 AM
To: email@hidden
Cc:
Subject: Ownership and permissions
Hi all,
Anyone who knows if it is possible to change Ownership and permissions for a
file by applescript.
If so, please tell me how to do it.
Live long and prosper
Peter mathiessen
_______________________________________________
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.
_______________________________________________
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.