Elevated Process
Phil Davis
revdev at pdslabs.net
Thu Oct 7 15:29:11 EDT 2010
For completeness, I'll throw in this option - not exactly what you are asking
for but it could work too:
put "do shell script" && q(tShellCommand) && "with administrator
privileges" into tASCommand
do tASCommand as AppleScript
This approach puts up a system password dialog.
Phil
On 10/7/10 7:09 AM, Generic Email wrote:
> I am on OS X, and I want to click a button, and have that button run a sudo command.
>
> but it needs to prompt for a password.
>
> Is there a way from LC to use the standard OS X elevated process dialogs?
>
> Thanks!
--
Phil Davis
PDS Labs
Professional Software Development
http://pdslabs.net
More information about the use-livecode
mailing list