RE: Having trouble with using administrator privileges in my droplet....
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