Re: Ooops!
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