teefster,
Exactly what do I copy and paste in the AppleScript you provided? I don't really understand what to do.
The popping audio is still driving me crazy. Cheers,
Craig.
set ali_admin to {"USERNAME", "PASSWORD"} # Replace with Username and Password of local administrator (in quotes)
set ali_admincheck to count ali_admin
if ali_admincheck is equal to 2 then
tell application "iTunes" to activate
set ali_itunespid to do shell script "ps -axww | grep '[/]iTunes '| awk '{print $1}'"
do shell script "sudo renice -20 -p " & ali_itunespid user name item 1 of ali_admin password item 2 of ali_admin with administrator privileges
do shell script "renice -20 -u _coreaudiod" user name item 1 of ali_admin password item 2 of ali_admin with administrator privileges
end if
For the more security conscious, or those who don't mind the password prompt use:
tell application "iTunes" to activate
set ali_itunespid to do shell script "ps -axww | grep '[/]iTunes '| awk '{print $1}'"
do shell script "sudo renice -20 -p " & ali_itunespid with administrator privileges
do shell script "renice -20 -u _coreaudiod" with administrator privileges