It would be a great feature, if we could at least make LC to reload the current system sound (which is currently loaded once at LC's startup). Please could anybody who's interested in this make the request?
For testing I used an applescript that does the following
= open the preferences window
= choose sound preferences and the correct tab
= repeat for all available system sounds:
=.= quit LC
=.= choose a system sound
=.= start LC and let it "beep 2"
= end repeat
= close the preferences window
[I think I can post this here, because a user has first to activate "assistive devices" before it's working]
Code: Select all
tell application "System Preferences"
activate -- visible
reveal anchor "effects" of pane "com.apple.preference.sound"
end tell
tell application "System Events"
tell process "System Preferences"
set RR to every row of table 1 of scroll area 1 of ¬
tab group 1 of window "sound"
repeat with R in RR
set selected of R to true -- plays sound once
tell application "LiveCode 7.0 (rc 2)"
run
do script "beep 2" -- plays sound twice
quit
end tell
end repeat
end tell
end tell
tell application "System Preferences" to quit
[Set the beepsound to (physical) "vibrate". This would be a *really* cool feature for desktop

]