• 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 16:53:51 -0400

On 8/15/07, John C. Welch <email@hidden> wrote:
> On 8/15/07 14:37 PM, "Mark J. Reed" <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.
>
> Technically, you only attach it to the folder you're adding items to. That
> can be, depending on how much work you wish to do, anywhere, really. As long
> as you add the requisite items to the same place, the physical location of
> the folder is rather unimportant, as long as the script can see everything
> it needs to.

Yes, but the OP specifically wanted to ensure that new folders dropped
into the hierarchy had the action attached to them, and new folders
dropped in them later got it, etc.


> It makes it less work to write and test. chmod is hardly l33t shell stuff.
> It's not 233 lines of perl.

Of course not.  But neither is "chmod 0775" or even "chmod
ug=rwx,o=rx" going to leap to the fingers of someone unfamiliar with
the UNIX command line. :)  Not that the Finder's "set privileges" is
necessarily more intuitive, but it's easier to locate for someone used
to AppleScript.

 > In a use like this however, one is FAR better off spending the time
to optimize
> item identification code, since that's the critical bit.

Absolutely.   Spend as little time possible identifying the items
while keeping the list of items as small as possible.  It's a
balancing act.


> The other advantage chmod has, is that if you ever need to operate in an ACL
> environment, chmod can apply ACLs, whereas the Finder can barely read them.

That admittedly hadn't occurred to me.  ACLs are still newfangled in my mind. :)

> "Cluster bombing from B-52s is very, very accurate. The bombs are guaranteed
> to always hit the ground."

Yay, B-52's!   (Son of a bombsight navigator from Vietnam)

--
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: finder script failing on some macs
  • 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