On 18 Jan 2010, at 21:03, Vittorio Stile wrote:

> Nel frattempo ho modificato l'AppleScript... ma neanche ora funziona dacci un 
> occhio
> 
> display dialog "AppleTV" buttons {"Riavvia", "Spegni", "Annulla"} default 
> button 3
> copy the result as list to {buttonpressed}
> 
> display dialog "Inserire la password 'frontrow':" default answer ""
> set userpassword to text returned of result
> 
> try
>       if the buttonpressed is "Riavvia" then do shell script ¬
>               "ssh front...@appletv.local"
>       do shell script ¬
>               "sudo reboot" password userpassword
>       if the buttonpressed is "Spegni" then do shell script ¬
>               "ssh front...@appletv.local"
>       do shell script ¬
>               "sudo shutdown -h now" password userpassword
> end try
> 


PS non modificare lo script. Una volta impostati i settaggi che ti dico, andrà 
benone.

_____________________________________________________
Maclist - iMaccanici - http://www.imaccanici.org
Gestione iscrizione:
http://liste.imaccanici.it/options.cgi/maclist-imaccanici.it

Rispondere a