Jump to content

Problema Apple Script

- - - - -

  • Please log in to reply
No replies to this topic

#1
Broll

Broll

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 114 posts
  • Gender:Male
  • Location:Ferrara
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

Attached Files







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy