Jump to content

Problema Apple Script


Broll
 Share

1 post in this topic

Recommended Posts

Ho uno script che mi abilita automaticamente alcune impostazioni del VoodooHDA, ma improvvisamente da qualche giorno non mi funziona più. Come mai?

Il messaggio di errore dice "La connessione non è valida".

 

Questo il codice dello script:

 

 

tell application "System Preferences"
activate
reveal (pane id "org.voodoo.VoodooHDA")
end tell
tell application "System Events"
set visible of process "System Preferences" to false
tell process "System Preferences"
tell checkbox "Use SSE2" of group 2 of window 1
repeat until exists (* wait until the object is accessible *)
delay 0.2
end repeat
if value is not 1 then click
end tell

tell checkbox "Enhance stereo" of group 2 of window 1
repeat until exists (* wait until the object is accessible *)
delay 0.2
end repeat
if value is not 1 then click
end tell

tell application "System Preferences"
quit
end tell
end tell
end tell

post-281164-0-77617000-1354460974_thumb.png

Link to comment
Share on other sites

 Share

×
×
  • Create New...