• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applying permissions to all files in all subfolders


  • Subject: Re: Applying permissions to all files in all subfolders
  • From: "John C. Welch" <email@hidden>
  • Date: Wed, 15 Aug 2007 14:20:36 -0500
  • Thread-topic: Applying permissions to all files in all subfolders

On 8/15/07 11:12 AM, "Mark J. Reed" <email@hidden> wrote:

>> This is where "do shell script" SCREAMS out to be used.
>
> I wouldn't say that.  Obviously a "chmod -R" is a single line instead
> of three, but I don't know if it's any more efficient than setting the
> perms of the entire contents with the Finder.  In any case, you still
> have the same problem of needing to trigger the chmod when something
> is dropped into a subfolder, and avoiding a chmod -R from the top
> folder every time.

Folder action running do shell script. I've quite a few of these running.

>
> Also, you have to make sure that you set the execute bit appropriately
> for directories, which complicates things.  It works out to something
> like
>
> find $folder -type d -exec chmod 0775 {} \; -o ! -type d -exec chmod 0664 {}
> \;

Not at all. Have the folder action go through the list of items and apply
the proper command based on item type.



--
Death is not the end. There remains the litigation over the estate.

Ambrose Bierce


 _______________________________________________
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

  • Follow-Ups:
    • Re: Applying permissions to all files in all subfolders
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Applying permissions to all files in all subfolders (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: AS for moving mails to local disk
  • 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: Re: Applying permissions to all files in all subfolders
  • Index(es):
    • Date
    • Thread