Re: Change permissions by Applescript
Re: Change permissions by Applescript
- Subject: Re: Change permissions by Applescript
- From: "John C. Welch" <email@hidden>
- Date: Sun, 20 Aug 2006 16:21:15 -0500
- Thread-topic: Change permissions by Applescript
On 8/20/06 15:23, "Adam Bell" <email@hidden> wrote:
> 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
You can also set permissions with the Finder's dictionary
--
You should never put a string of lit Black Cat firecrackers in someone¹s
back pocket while they¹re on stage playing bass guitar with their band. Even
if they fucked your knee up by reversing the figure-four on you that one
time. And even if you crack up at just the idea of someone with their pants
are on fire jumping up and down and spinning around and around like a dog
chasing its tail while trying to figure out what¹s going on. Yup, someone
could get their ass burned, so it¹s wrong. Despite the fact that it's
really, really funny.
_______________________________________________
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