Re: Applying permissions to all files in all subfolders
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