Re: Change permissions by Applescript
Re: Change permissions by Applescript
- Subject: Re: Change permissions by Applescript
- From: Adam Bell <email@hidden>
- Date: Sun, 20 Aug 2006 17:23:43 -0300
Title: Re: Change permissions by
Applescript
At 9:57 PM +0200 8/20/06, Peter Mathiessen wrote:
Hi all,
Is it possible, by Applescript, to change the permissions on files
and
folders?
Scenario,
A user is logging on to a server with only read permissions. He
downloads a
folder containing several subfolders that contains several files. Is
it
possible to run a script to change the permissions on those folders
and
files?
Something like this (in Tiger):
to chOwn(aliasToFolder)
set
mypath
to quoted
form
of POSIX
path
of
aliasToFolder
set
uName
to do shell
script
"whoami"
do shell script "chown -R" & uName &
space & mypath & ";chmod 775 " & mypath with administrator privileges
end chOwn
---------------------------
Live long and prosper
Peter Mathiessen
---------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription:
>esscable.net
This email sent to email@hidden
_______________________________________________
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