• 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: "Mark J. Reed" <email@hidden>
  • Date: Wed, 15 Aug 2007 15:37:34 -0400

On 8/15/07, John C. Welch <email@hidden> wrote:
> Folder action running do shell script. I've quite a few of these running.

Right, but you still have to attach the folder action to each new subfolder.

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

Yes, as my original script did.

You can certainly use { do shell script "chmod" } rather than { tell
application "Finder" to set privileges } in order to fix the
permissions, but in terms of solving the overall problem, it doesn't
buy you anything.  Except perhaps intuitiveness to UNIX geeks. :)   I
don't know offhand which solution would be more efficient, but either
way you have to execute it on the right items, avoid executing it on
the wrong items, and distinguish between folders and non-folders.

--
Mark J. Reed <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

  • Follow-Ups:
    • Re: Applying permissions to all files in all subfolders
      • From: "John C. Welch" <email@hidden>
References: 
 >Re: Applying permissions to all files in all subfolders (From: "Mark J. Reed" <email@hidden>)
 >Re: Applying permissions to all files in all subfolders (From: "John C. Welch" <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: Re: Applying permissions to all files in all subfolders
  • Index(es):
    • Date
    • Thread