I want to extend the sudo timeout using GUI on my Mac for a script which contains sudo commands but is not allowed to run with root in total.
so I want to do something like:
osascript -e "do shell script 'sudo -v'" with administrator privileges"
do_some_thing_without_root
sudo do_some_thing_with_root_but_without_asking_the_password