on mouseUp
   answer file "???"
   if it = empty then exit to top
   put "cat" && quote & it & quote into tCommand

   open elevated process tCommand for read
   if the result <> empty then exit to top -- user canceled
   read from process tCommand until EOF
   put it into fld 1
   close process tCommand
end mouseUp


Happy Thanksgiving!
Phil


On 11/24/10 12:04 PM, Bill Vlahos wrote:
I have a Mac application to read log files that need administrative permission 
(sudo) to read. How can I prompt for this?

Bill Vlahos
_________________
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.

--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to