• 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: Apply User and Groups to Items in a Folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apply User and Groups to Items in a Folder


  • Subject: Re: Apply User and Groups to Items in a Folder
  • From: "J. Stewart" <email@hidden>
  • Date: Thu, 20 Apr 2006 04:41:55 -0400

On 4/19/06 at -0700 Todd Geist said this

>But I can't get rid of the authentication dialog.  I have tried
>
>do shell script s password "Admin Password" with administrator
>privileges
>do shell script s  with administrator privileges
>do shell script s
>
>
>Nothing works I always get the password dialog.  As far as I can tell
>"administrator privileges" doesn't do anything.
>
>Frustrated  :<(

For some things you need to authenticate as an admin user even when you don't wish to. In this particular case, comment out the "with administrator privileges" part and see if the script will function. I don't believe it will as you are changing the owener and group of admin owned files.

You can put your password in the script if you choose but that is a very insecure thing to do.


Fron the Standard Addition's Osax dictionary.

Do shell script
do shell script (verb)Execute a shell script or command using the ‘sh’ shell (from the Miscellaneous Commands suite, defined in StandardAdditions.osax)

Function Syntax
set theResult to do shell script string ¬
     as type class ¬
     administrator privileges boolean ¬
     user name string ¬
     password string ¬
     altering line endings boolean
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Apply User and Groups to Items in a Folder
      • From: Todd Geist <email@hidden>
References: 
 >Re: Apply User and Groups to Items in a Folder (From: Todd Geist <email@hidden>)

  • Prev by Date: Re: Why do I get this error?
  • Next by Date: Re: Why do I get this error?
  • Previous by thread: Re: Apply User and Groups to Items in a Folder
  • Next by thread: Re: Apply User and Groups to Items in a Folder
  • Index(es):
    • Date
    • Thread