• 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
Can I add text to the Administrator setting of a shell script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Can I add text to the Administrator setting of a shell script?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Clearing 'sticky' mail in Mail app.
  • Next by Date: Re: Can I add text to the Administrator setting of a shell script?
  • Previous by thread: Clearing 'sticky' mail in Mail app.
  • Next by thread: Re: Can I add text to the Administrator setting of a shell script?
  • Index(es):
    • Date
    • Thread