• 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: Applying permissions to all files in all subfolders with chmod
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applying permissions to all files in all subfolders with chmod


  • Subject: Re: Applying permissions to all files in all subfolders with chmod
  • From: Ronald Hofmann <email@hidden>
  • Date: Wed, 15 Aug 2007 18:05:54 +0200

I´m using this script which uses the unix command chmod.
You can select a bunch of folders and use this script via AppleScript menu.
u > User
o > Owner
g > Group
r > read
w > write
x > execute
-R > applies the command also on subfolders


You can find out what else it does in the Terminal: man chmod

-- Script begin
tell application "Finder"
	set theListe to selection as list
end tell

repeat with i in theListe
set vSelection to POSIX path of (i as text)
do shell script "chmod -R u=rwx,o=rwx,g=rwx '" & vSelection & "'" with administrator privileges
end repeat
-- Script end


Regards, Ronald
---

Am Mittwoch15.08.2007 um 16:01 schrieb Tom Giles:

Hi,

I'm a newbie with AppleScript so please bear with me here! We've been having problems with permissions on a file share on our server, so i've decided to write a little folder action script to reapply the perms on the creation of a new a file. So far so good. However this only works for the top level of the folder. I need to apply to every existing subfolder and any new ones created. I was thinking i could do this by writing another script which gets a list of all the subfolders and attaches my script to them. Is it possible to do this? I can't find out how I would. The other alternative i've thought of is using Automator, but i'm not sure how that integrates with folder actions. Thanks for your help and apologies if this has been asked before...
Thanks
Tom


--
Please note: the clock on my laptop is not functioning correctly and so the time this email looks like it was sent will no longer be correct.


___________
BD Solutions

3rd Floor
95A Rivington Street
London
EC2A 3AY

0207 739 3001

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40jumbosoft.de
Archives: http://lists.apple.com/archives/applescript-users


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: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Applying permissions to all files in all subfolders (From: Tom Giles <email@hidden>)

  • Prev by Date: Re: Applying permissions to all files in all subfolders
  • Next by Date: Re: Applying permissions to all files in all subfolders
  • Previous by thread: Re: Applying permissions to all files in all subfolders
  • Next by thread: Setting Print specs in Excel
  • Index(es):
    • Date
    • Thread