• 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: Having trouble with using administrator privileges in my droplet....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Having trouble with using administrator privileges in my droplet....


  • Subject: RE: Having trouble with using administrator privileges in my droplet....
  • From: "OSullivan, Steven" <email@hidden>
  • Date: Tue, 30 Jun 2009 16:11:26 -0700
  • Thread-topic: Having trouble with using administrator privileges in my droplet....

Title: RE: Having trouble with using administrator privileges in my droplet....
Howdy all,

Now that I have my script working overall (thanks guys!) I am still running into a problem:

After I run my script (thanks Steve):

on open theFile
   set theFile to POSIX path of theFile
   do shell script "chmod 333" & space & quoted form of theFile with administrator privileges
   do shell script "cp" & space & quoted form of theFile & space & "/usr/local/bin" with administrator privileges
end open

When I check the permissions on my target file that is now in /usr/local/bin, I see these permissions:

--wx--x--x  1 root   wheel     99 Jun 30 16:06 foo.sh*

If I run a chmod from the terminal, I get the proper permissions, but when I run things through the script, I get the result above....

Any further ideas? Is this a known bug in AppleScript?

Regards,

Steve O’Sullivan
 _______________________________________________
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: Having trouble with using administrator privileges in my droplet....
      • From: Steve Thompson <email@hidden>
  • Prev by Date: Re: Having trouble with using administrator privileges in my droplet....
  • Next by Date: Re: Having trouble with using administrator privileges in my droplet....
  • Previous by thread: Re: Having trouble with using administrator privileges in my droplet....
  • Next by thread: Re: Having trouble with using administrator privileges in my droplet....
  • Index(es):
    • Date
    • Thread