Can I add text to the Administrator setting of a shell script?
Can I add text to the Administrator setting of a shell script?
- Subject: Can I add text to the Administrator setting of a shell script?
- From: Brian Christmas <email@hidden>
- Date: Mon, 15 Jun 2015 08:48:16 +1000
G’day scripters
My clients have struck a problem where the main folder of my app can’t be installed. I’m waiting on feedback, but suspect the privileges of the Applications folder on the new Yosemite install are not set correctly.
I’ve got the shell script I want, but the message saying my app wants to make changes is woefully inadequate.
Is it possible to add extra text to the ‘with administrator privileges’ request box?
Regards
Santa
set quotedPath to quoted form of POSIX path of (path to applications folder) do shell script "stat -f %p " & quotedPath if result is not "40777" then (do shell script " chmod 777 " & quotedPath with administrator privileges) end if |
_______________________________________________
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