Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

getting administrator privileges with applescript (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: =?windows-1256?Q?passing pa?= =?windows-1256?Q?rameters t?= =?windows-1256?Q?o soap met?= =?windows-1256?Q?hod=FE?=
Next thread: Re: Listbox content not aligned / sorted properly


TypeLibs and API Interfaces for Windows   -   Garth Hjelte
  getting administrator privileges with applescript   -   John Jobe
   Re: getting administrator privileges with applescript   -   Anthony Dellos
   Re: getting administrator privileges with applescript   -   Eric Williams
   Re: getting administrator privileges with applescript   -   John Jobe
   Re: getting administrator privileges with applescript   -   John Jobe
    Re: getting administrator privileges with applescript   -   Jon Ogden
   Re: getting administrator privileges with applescript   -   Charles Yeomans
    Re: getting administrator privileges with applescript   -   Eduardo Gutierrez de Oliveira

getting administrator privileges with applescript
Date: 02.08.11 05:40 (Mon, 1 Aug 2011 23:40:27 -0500)
From: John Jobe
When using "with administrator privileges" in an embedded AppleScript is there a way to make a prettier message? The auto-message that pops up basically just says 'PROGRAMNAME wants to make changes' and provides the blanks for the username/password. I'd like to put my own message up if possible, but don't want users to go through the process of an extra screen to explain that a login request is about to happen.

Thanks,
John


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: getting administrator privileges with applescript
Date: 02.08.11 17:33 (Tue, 2 Aug 2011 09:33:07 -0700)
From: Anthony Dellos
Agree 100% with Eric.

I have a hobby app that collects space usage for a selected directory. The
user has the option to "unlock restricted files" by entering their admin
password prior to running a search.

This is mostly used by some IT admin buddies of mine to check the size of
the "/Users" folder on Macs that are shared by multiple users in a business
setting.

The cause for the password prompt is clear and in-context (padlock icon in
toolbar that says "Unlock Restricted Files"), and the password is used for
that app session only (stored in memory not on disk).

Ant


On Tue, Aug 2, 2011 at 7:16 AM, Eric Williams <<email address removed>> wrote:

>
> On Aug 2, 2011, at 4:41 AM, Charles Yeomans wrote:
>
> >
> > On Aug 2, 2011, at 12:40 AM, John Jobe wrote:
> >
> >> When using "with administrator privileges" in an embedded AppleScript is
> there a way to make a prettier message? The auto-message that pops up
> basically just says 'PROGRAMNAME wants to make changes' and provides the
> blanks for the username/password. I'd like to put my own message up if
> possible, but don't want users to go through the process of an extra screen
> to explain that a login request is about to happen.
> >>
> >
> > Apple strongly discourages the use of custom security alerts.
>
> Indeed they do. I've encountered one app that uses a custom password dialog
> to obtain admin privileges (Carbon Copy Cloner), and it always gives me
> pause: is it saving my password somewhere?
>
> I think he best approach is to make the security dialog appear as much in
> context as possible. That is, it should appear in response to a user action,
> such as selecting a menu item or pressing a button whose action one might
> expect to require administrator privileges to complete. Some applications,
> like the horrible Adobe [Acrobat] Reader, randomly show the security dialog
> during application startup, where the user has no idea what is going on that
> requires elevated privileges; to me, this is clearly the wrong approach.
>
> Eric M. Williams
> Oxalyn
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: getting administrator privileges with applescript
Date: 02.08.11 15:16 (Tue, 2 Aug 2011 07:16:46 -0700)
From: Eric Williams

On Aug 2, 2011, at 4:41 AM, Charles Yeomans wrote:

>
> On Aug 2, 2011, at 12:40 AM, John Jobe wrote:
>
>> When using "with administrator privileges" in an embedded AppleScript is there a way to make a prettier message? The auto-message that pops up basically just says 'PROGRAMNAME wants to make changes' and provides the blanks for the username/password. I'd like to put my own message up if possible, but don't want users to go through the process of an extra screen to explain that a login request is about to happen.
>>
> Apple strongly discourages the use of custom security alerts.

Indeed they do. I've encountered one app that uses a custom password dialog to obtain admin privileges (Carbon Copy Cloner), and it always gives me pause: is it saving my password somewhere?

I think he best approach is to make the security dialog appear as much in context as possible. That is, it should appear in response to a user action, such as selecting a menu item or pressing a button whose action one might expect to require administrator privileges to complete. Some applications, like the horrible Adobe [Acrobat] Reader, randomly show the security dialog during application startup, where the user has no idea what is going on that requires elevated privileges; to me, this is clearly the wrong approach.

Eric M. Williams
Oxalyn

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: getting administrator privileges with applescript
Date: 02.08.11 13:06 (Tue, 2 Aug 2011 07:06:02 -0500)
From: John Jobe

On Aug 2, 2011, at 7:04 AM, Jon Ogden wrote:

> On Aug 2, 2011, at 6:53 AM, John Jobe <<email address removed>> wrote:
>
>> I can see how that could be misused. What is the best way to let user's know *why* they are being prompted for a username/password?
>
> It happens frequently these days it seems! So i think people get used to
> It and may expect a certain level of it I would put any explanation in my documentation and help sections.

Simple enough... Thank you.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: getting administrator privileges with applescript
Date: 02.08.11 12:53 (Tue, 2 Aug 2011 06:53:50 -0500)
From: John Jobe


On Aug 2, 2011, at 6:41 AM, Charles Yeomans wrote:

>
> On Aug 2, 2011, at 12:40 AM, John Jobe wrote:
>
>> When using "with administrator privileges" in an embedded AppleScript is there a way to make a prettier message? The auto-message that pops up basically just says 'PROGRAMNAME wants to make changes' and provides the blanks for the username/password. I'd like to put my own message up if possible, but don't want users to go through the process of an extra screen to explain that a login request is about to happen.
>>
> Apple strongly discourages the use of custom security alerts.
>

I can see how that could be misused. What is the best way to let user's know *why* they are being prompted for a username/password?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: getting administrator privileges with applescript
Date: 02.08.11 13:04 (Tue, 02 Aug 2011 07:04:21 -0500)
From: Jon Ogden
On Aug 2, 2011, at 6:53 AM, John Jobe <<email address removed>> wrote:

> I can see how that could be misused. What is the best way to let user's know *why* they are being prompted for a username/password?

It happens frequently these days it seems! So i think people get used to
It and may expect a certain level of it I would put any explanation in my documentation and help sections.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: getting administrator privileges with applescript
Date: 02.08.11 12:41 (Tue, 2 Aug 2011 07:41:26 -0400)
From: Charles Yeomans

On Aug 2, 2011, at 12:40 AM, John Jobe wrote:

> When using "with administrator privileges" in an embedded AppleScript is there a way to make a prettier message? The auto-message that pops up basically just says 'PROGRAMNAME wants to make changes' and provides the blanks for the username/password. I'd like to put my own message up if possible, but don't want users to go through the process of an extra screen to explain that a login request is about to happen.
>

Apple strongly discourages the use of custom security alerts.

Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: getting administrator privileges with applescript
Date: 02.08.11 12:53 (Tue, 02 Aug 2011 13:53:13 +0200)
From: Eduardo Gutierrez de Oliveira
On 02/08/2011, at 13:41, Charles Yeomans <<email address removed>> wrote:

>
> On Aug 2, 2011, at 12:40 AM, John Jobe wrote:
>
>> When using "with administrator privileges" in an embedded AppleScript is there a way to make a prettier message? The auto-message that pops up basically just says 'PROGRAMNAME wants to make changes' and provides the blanks for the username/password. I'd like to put my own message up if possible, but don't want users to go through the process of an extra screen to explain that a login request is about to happen.
>>
> Apple strongly discourages the use of custom security alerts.

And with reason. It is as easy to write an explanatory alert as it is to write a misleading or false one. Users will believe official-looking alerts.

Eduo

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>