• 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: Change permissions by Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Change permissions by Applescript
      • From: "John C. Welch" <email@hidden>
References: 
 >Change permissions by Applescript (From: Peter Mathiessen <email@hidden>)

  • Prev by Date: Change permissions by Applescript
  • Next by Date: Re: Change permissions by Applescript
  • Previous by thread: Change permissions by Applescript
  • Next by thread: Re: Change permissions by Applescript
  • Index(es):
    • Date
    • Thread