• 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: Ooops!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ooops!


  • Subject: Re: Ooops!
  • From: Barry Wainwright <email@hidden>
  • Date: Sat, 01 Nov 2014 08:22:17 +0000


On 1 Nov 2014, at 02:06, Brian Christmas <email@hidden> wrote:

set thePassword to text reurned of (display dialog "I need to set 'Application Accessibility' for this application." & return & return & "Please type in your Administrative password." default answer "")


And please, don’t do this!
Apart from the fact you don’t use the “with hidden answer” option in the display dialog command, the administrator password will be saved in the script in plain text where it can be easily accessed. 

If you run a shell script using ‘with administrator privileges’ without supplying the password the system will prompt for a password using a system call, which is much more secure.

-- 
Barry

 _______________________________________________
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: Ooops!
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: Re: Ooops!
  • Next by Date: Re: Ooops!
  • Previous by thread: Re: Ooops!
  • Next by thread: Re: Ooops!
  • Index(es):
    • Date
    • Thread