Come posso attivare un applescript sul mouse? Voglio che questo script di mele venga eseguito quando un utente fa il doppio clic su uno spazio vuoto nel desktop (cioè non facendo clic sulle icone presenti sul desktop).
Questo è il mio script finora:
try
set toggle to do shell script "defaults read com.apple.finder CreateDesktop"
if toggle = "true" then
do shell script "defaults write com.apple.finder CreateDesktop false"
else if toggle = "false" then
do shell script "defaults write com.apple.finder CreateDesktop true"
end if
end try
do shell script "killall Finder"
delay 0.1
activate application "Finder"