I don\'t know what the deal is here…
So I want to run an applescript: sudo osascript myscript.scpt
sudo osascript myscript.scpt
This works fine in the terminal, but not when
It sounds like you need to set up passwordless sudo. Try:
%admin ALL=(ALL) NOPASSWD: osascript myscript.scpt
Also comment out the following line (in /etc/sudoers via visudo), if it is there:
Defaults requiretty