• 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 23:11:20 -0500
  • Thread-topic: Applying permissions to all files in all subfolders

On 8/15/07 15:53 PM, "Mark J. Reed" <email@hidden> wrote:

>> 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.

Heh, so script that too.

>
>
>> 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.

Remember, the Finder cannot set all three modes of POSIX permissions. The
Finder, even in Mac OS X 10.4, really only understands read and write. If
you want to explicitly set the execute bit separately, you cannot do that in
the Finder.

>> 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.
> :)

They're quite excellent, but again, the Finder can't deal with them
correctly.

--
 "You humans call this thing a 'cursor' and you  move it with 'mouse'! Bah!
A Klingon would not use such  a device. We have a Karaghht-Gnot - which is
best  translated as "An Aiming Daggar of 16x16 pixels" and  we move it using
a Gshnarrrf which is a creature from  the Klingon homeworld which posesses
just one,  (disproportionately large) testicle...which it rubs along  the
ground...a fearsome creature indeed.


 _______________________________________________
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: 
 >Re: Applying permissions to all files in all subfolders (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Applying permissions to all files in all subfolders
  • Next by Date: [OFFTOPIC] does anyone feel like giving me some perl assistance off list?
  • 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